lua-users home
lua-l archive

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


On Mon, Jul 30, 2001 at 05:35:10PM +0300, Hakki Dogusan wrote:
> Hi,
> 
> what should I put in
> const int B::getA(lua_State* L) {
>    // ...
>   }

I'm guessing that you want to return the address of an A object. In that case return a userdata to Lua.

	{
		lua_pushusertag(L, new A(), 0);
		return 1;
	}

-Lenny