lua-users home
lua-l archive

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



-----Ursprüngliche Nachricht-----
Von: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br]Im Auftrag von Peter Shook
Gesendet: Montag, 14. Juli 2003 16:34
An: Lua list
Betreff: Re: C++ binding



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

Thank you, that was it. Sorry for my bad explaining.
robert kuecken