lua-users home
lua-l archive

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


On Mon, Aug 15, 2011 at 10:24 AM, Eike Decker <zet23t@googlemail.com> wrote:
> It would be really cool if Lua provided a way to handle stack
> unwinding so that one can create transaction objects that either
> commit or rollback depending on what is happening.

It would be cool. There have been a number of proposals that do exactly that

http://lua-users.org/lists/lua-l/2008-01/msg00138.html

However, I'm sure it can be done reasonably efficiently in the
language with pcall() and closures.

steve d.