[Date Prev][Date Next][Thread Prev][Thread Next]
- 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" <email@example.com>
To: "Multiple recipients of list" <firstname.lastname@example.org>
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.
> On 17/6/02 19:31, "Robert Sadedin" <email@example.com>
> > 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
> > pass in the id which can referenced through the array, but I don't know
> > to register the table from c++ for lua with a given name (functions no
> > sweat, using closures).