lua-users home
lua-l archive

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


> Also, Lua 4.0 does not compile out of the box as C++.

It does (or it should, at least). I mean, Lua 4.0 is correct C++ code.
You only have to use a C++ compiler.


> The only reason for doing it this way back then was that I did not
> have the time and inclination to review the Lua library code to see
> what was necessary to make it exception-safe.

Because Lua itself uses longjmp, it is mostly "exception safe". The only
changes you have to do is in the handling of errors: change longjmp
to throw, and setjmp to catch (...).

-- Roberto