lua-users home
lua-l archive

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


On Sat, Jan 9, 2010 at 7:52 PM, David Given <dg@cowlark.com> wrote:
> As an aside, I actually did this for Objective Lua --- you can return
> from inside the try or catch and it all works correctly.

Cool, I'll definitely look at that.

> However, this raised some design issues about what to do with the
> exception once you've caught it. As Lua tends to throw strings ...

John Belmonte has written about Lua Exception patterns:

http://www.lua.org/wshop06/Belmonte.pdf

Once you have mechanism, then policy is the hardest part ;)

steve d.