lua-users home
lua-l archive

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


On 19.10.11 15:16, steve donovan wrote:
Personally, I've done enough C++ to wish for scope-based deterministic
finalization. But it should not slow down the general case.

This could be quite easily achieved by borrowing the 'defer' mechanism from Go [1]. AFAIK this can be implemented quite cheaply in general but I do not know if it applies to the Lua (and LuaJIT) case.

[1]: http://blog.golang.org/2010/08/defer-panic-and-recover.html

--
regards,
Jakub Piotr Cłapa