Re: Can I use __gc metamethod directly from Lua?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Can I use __gc metamethod directly from Lua?
- From: "Adam D. Moss" <adam@...>
- Date: 2006年11月26日 00:22:19 +0000
David Given wrote:
Trying to do real work from a finaliser in Lua land is going to involve a
world of pain, I'm afraid. Consider the following:
...
Lua avoids this kind of nasty mess by decreeing that finalisers are not
available from the Lua language.
Well... having asked about this before, I got the reply that using a
Lua function as a finalizer is fully supported, IIRC. Certainly I do
this extensively without conspicuous problems.
--Adam