lua-users home
lua-l archive

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


Hi,

Take a look at the section "Safe Object Destructors" in my Lua technical
note on weak references (http://www.lua.org/notes/ltn006.html).

-John


André de Leiradella wrote:
> Hi all,
> 
> Sorry if this has been answered before but why can't I set the 'gc' tag
> method from inside a lua program? I need to call a 'destructor' method
> whenever an instance of my class system is destroyed.

-- 
OpenPGP encrypted mail welcome.