lua-users home
lua-l archive

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


>>> 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