On Thu, Apr 12, 2018 at 2:35 PM, Dibyendu Majumdar
<mobile@majumdar.org.uk> wrote:
> As I was writing my initial post I did think about suggesting a try/finally type approach.
I am not exactly sure what you mean here. Are you talking about libraries interacting with Lua?
Or are you talking about some kind of try/finally syntax in Lua, where finally would release resources?
> But the problem with Lua is that it has adopted a longjmp based exception handling method ...
For the record, Lua can be compiled in a mode that relies on C++ exceptions for that.
Cheers,
V.