lua-users home
lua-l archive

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

On Wed, Aug 20, 2003 at 11:25:21AM -0300, Waldemar Celes wrote:
> >The vibe I get from the tolua documentation it that is really all
> >about exporting *existing* C interfaces (which make no mention of lua
> >because they were not designed with lua in mind) rather than designed
> >a specific lua/C interface.  So it makes no allowances for
> >lua-specific types.
> no. tolua can handle function that receives lua object as parameter.
> for tolua 3.2, one should use lua_Object as the parameter type.
> for tolua 4.0, LUA_VALUE.
> for tolua 5.0, either lua_Object or LUA_VALUE.

You could perhaps update the documentation to reflect this.  Yes, I
realise it is officially a 3.2 manual, but it could have a little note
saying 'use LUA_VALUE in version 4.0, or lua_Object in version 5'

> in tolua4.0 and tolua5.0, these "types" in the .pkg works as a hint
> for tolua to handle the parameter correctly.

And it sets up the parameter as what? A reference for use with
lua_getref? or? A stack index?