|
|
||
|
Try to comment the following chunk out, it's unnecessary, IMO:
luaL_getmetatable( pLuaState, "PACEmaker.Room" ); lua_pushstring( pLuaState, "__gc" ); lua_pushcfunction( pLuaState, UKAdventureDeleteRoom ); lua_settable( pLuaState, -3 ); luaL_getmetatable( pLuaState, "PACEmaker.Room" ); lua_pushstring( pLuaState, "__tostring" ); lua_pushcfunction( pLuaState, UKAdventureRoomToString ); lua_settable( pLuaState, -3 );
Shmuel,
for i=100,1,-1 do
aRoom = Room.new()
print( tostring( aRoom ) )
aRoom = nil
endroom created attempt to concatenate a userdata value room created
Does that ring a bell for anyone? I'm simply puzzled :-(
Cheers, -- M. Uli Kusterer http://www.zathras.de