[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Very small feature request
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 09 Apr 2003 15:35:10 -0300
> 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