lua-users home
lua-l archive

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


Robert Kücken wrote:

how is it possible to register a second C++-Class. Do I Have to use another stack or can use the same as the first class.
You can use the same lua_State, if that's what you mean.  I don't 
understand your question.
The LuaAccount::Register(L) just puts a constructor function in the 
globals and a metatable in the registry.  You just need to write and 
call SomeOther::Register(L) function.
- Peter