Re: modifying a module with another module
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: modifying a module with another module
 
- From: "Wesley Smith" <wesley.hoke@...>
 
- Date: 2008年9月24日 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.
wes