lua-users home
lua-l archive

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


> Of course the best thing is to use pcall, as Luiz said. With C++, I
> installed a panic function that throws an exception instead of calling
> exit().

But panic functions are for exactly that: panic. They should not be used
for ordinary flow control.