Re: C-objects with __gc *and* __index?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: C-objects with __gc *and* __index?
- From: Shmuel Zeigerman <shmuz@...>
- Date: 2005年8月07日 06:48:11 +0200
Uli Kusterer wrote:
<snip>
yes, looks like this was unnecessary, because this still doesn't
change anything. Still the same error message. The code I'm running is:
for i=100,1,-1 do
aRoom = Room.new()
print( tostring( aRoom ) )
aRoom = nil
end
I've set the C++ object to printf "room created" and "room deleted"
from its constructor/destructor. The exact output I'm getting is:
room created
attempt to concatenate a userdata value
room created
Uli,
It seems the problems are in the UKAdventureNewRoom
and/or UKAdventureRoomToString. Could you post them?
--
Shmuel