lua-users home
lua-l archive

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

> As a compulsive parser hacker, this is something I've certainly thought about doing.  But,
> I'm actually not convinced it's worth the trouble.  If all you want it try/catch, I feel like
> function wrapping is generally sufficient, for example:

I like guard/finalize syntax better than try/catch: (this event
includes a patch against one of Lua 5.1 versions). Also related links
on deterministic resource cleanup
(, finalizers
(, resource
cleanup (, and
a more recent follow-up on guard/finalize