lua-users home
lua-l archive

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

> On 15 March 2015 at 16:02 Roberto Ierusalimschy <> wrote:
> Yes. The design of Lua is all around the concept of "protected calls"
> (and, by implication, of unprotected calls). Several pieces of code in
> Lua assume that someone else (the protected call) will clear its mess
> if an exception occurrs. To make Lua "exception safe" in that general
> sense, you would have to correct all those places that do "unprotected
> calls", which are many and hard to find.
> (To be honest, I think the real difficulty is finding the correct places
> to correct and then testing the result, as any non-corrected place is a
> source of a hard-to-find bug. Maybe the size of the change is not that
> big after all, I really have no idea.)

Ok, I'll just take this as the definite answer that full exception safety is probably possible somehow, but most probably a lot of
work to get all the details right.

We'll go with one of the work-arounds.

Thanks, Colin