lua-users home
lua-l archive

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


Actually, the syntax here doesn't require that Object is a native lua type. It's equivalent to metatable(Object).call({...}), with which you can make anything you want (userdata, or whatever).
- Brian

kaishaku13 wrote:

I forgot to mention this is for userdata on the C/C++ side,
not for a pure Lua implemented class/object setup.

--- In lua-l@y..., Denis Andreev <denq@m...> wrote:

k> I currently use :
k> foo = new_ObjectName(params)

For all objects we use:
object = Object { <params> }

--Denq