[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: tables and the gc
- From: "Thomas Wrensch" <twrensch@...>
- Date: Wed, 30 Apr 2003 09:55:50 -0700
>>> peter@eyeonline.com 04/29/03 17:04 PM >>>
>> luaobj = {}
>> luaobj.__resource = rawConnectInC(name)
>> setmetatable(luaobj, {__gc = destroyResource}
>
>Do __gc methods actually work for tables these days? >Last time I
tried I
>couldn't get it to... seemed like a fairly serious >problem.
>
>Love, Light and Peace,
>- Peter Loveday
>Director of Development, eyeon Software
Good question. I haven't actually done this. You could do the same thing
with a userdata though.
- Tom