[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: modifying a module with another module
- From: "Wesley Smith" <wesley.hoke@...>
- Date: Wed, 24 Sep 2008 09:53:35 -0700
wows, lot's of questions.
> Can you explain what View is ? Metatable for userdata
Is that a singleton ? No
A prototype ? No unless you consider a metatable for a userdata such a thing
> class ? No
> objects userdata, tables ? the metatable generates userdata from it's factory method View()
> How are their methods defined and where are they located ? in the metatable itself
So far, I'm basically "deep copying" the View metatable and doing
setmetatable(ViewCopy, getmetatable(View)). This seems to be enough
as I can't do any more than that.