lua-users home
lua-l archive

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


On Fri, Sep 17, 2010 at 11:28 PM, Quae Quack <quae@daurnimator.com> wrote:
> Looks like you just made xpcall:

Interesting--I never thought of xpcall as a try/catch.  However, one
problem in your code is that the "error(err)" in the error handler
doesn't propagate the error but rather causes xpcall to return an
"error in error handling" because many times the caller wants to
suppress *all* errors.  Maybe xpcall should though in some way support
error handlers that propagate errors to better support this usage.