[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: C++ creation of object, and Lua co-calling
- From: "Robert Sadedin" <serenity@...>
- Date: Mon, 17 Jun 2002 20:46:26 +1000
Great. Thanks again.
----- Original Message -----
From: "Gary Makin" <garym@ssg.com.au>
To: "Multiple recipients of list" <lua-l@tecgraf.puc-rio.br>
Sent: Monday, June 17, 2002 8:44 PM
Subject: Re: C++ creation of object, and Lua co-calling
> When you create the table with lua_newtable() it will be on the top of the
> stack. Just use lua_setglobal() to give it a name.
>
> Gary
>
>
> On 17/6/02 19:31, "Robert Sadedin" <serenity@nosubstancesoftware.com>
wrote:
>
> > Hmmm.
> > How do I create a labeled table from within c++ for lua?
> > I've got the members added by using a function array and the table
should
> > pass in the id which can referenced through the array, but I don't know
how
> > to register the table from c++ for lua with a given name (functions no
> > sweat, using closures).
>
>
>