[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: AW: C++ binding
- From: Robert Kücken <robert.kuecken@...>
- Date: Mon, 14 Jul 2003 19:47:33 +0200
-----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