[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Exceptions (was Re: Custom extensions to Lua)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 12 Aug 2005 10:08:02 -0300
> All we need to do is come up with a finalization mechanism that is
> safe and we are all set.
I still think that we can do that with finalizers. As long as each
object has a proper finalizer (i.e., a __gc metamethod), all we have to
do in case of errors is to call collectgarbage() to finalize what was
left.
(One small thing we could change in Lua is to automatically call a
full GC cycle whenever an error is caught.)
-- Roberto