[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: C upvalue cleanup not being called
- From: Ignacio Burgueño <iburgueno@...>
- Date: Wed, 12 Mar 2014 09:27:04 -0300
Unless I'm mistaken, that won't work with Lua 5.1 since the __gc metamethod for tables was introduced in 5.2.
In this case, it does nothing. You'll need a userdata to achieve the same effect.
You should take a look at Thijs Schreijer's "Lua Library Template"
For instance, this example does what you want: