lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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