lua-users home
lua-l archive

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

> 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

(One small thing we could change in Lua is to automatically call a
full GC cycle whenever an error is caught.)

-- Roberto