lua-users home
lua-l archive

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


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).
>
>
>