lua-users home
lua-l archive

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


On 12 March 2010 19:53, Gaspard Bucher <gaspard@teti.ch> 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
> safe.

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)."

Alex