[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Current best practice for C++ exception handling
- From: "A.S. Bradbury" <asb@...>
- Date: Fri, 12 Mar 2010 20:04:09 +0000
On 12 March 2010 19:53, Gaspard Bucher <firstname.lastname@example.org> wrote:
> Thanks for the reply. I just adapted Dub to wrap the calls with try/catch
> blocks (which can be specialized for library specific exceptions) and it
> works fine. All calls to lua use pcall so the C++ to Lua interface should be
Is the following note in the README still accurate?
"Since this generator uses C++ code and memory allocation, you MUST
compile Lua as C++ code to avoid memory leaks (error handling should
use exceptions instead of longjmp)."