[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Current best practice for C++ exception handling
- From: Gaspard Bucher <gaspard@...>
- Date: Fri, 12 Mar 2010 21:14:21 +0100
No, sorry I'll fix this.
On Fri, Mar 12, 2010 at 9:04 PM, A.S. Bradbury <email@example.com>
Is the following note in the README still accurate?
On 12 March 2010 19:53, Gaspard Bucher <firstname.lastname@example.org
> 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
"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)."