[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Try-catch and try-finally
- From: Jay Carlson <nop@...>
- Date: Tue, 31 May 2016 12:47:19 -0400
> On 2016-05-31, at 9:12 AM, Viacheslav Usov <via.usov@gmail.com> wrote:
>
> Fundamentally, however, the flaw in the language is not its lack of a higher-level exception-handling abstraction, but its inability to finalize expensive resources deterministically. In C++, destructors do that, and, indeed, in C++ one can just get by with a single exception handler "that prints error messages". In Lua (today) this is not generally feasible.
>
How do "cleanup is stack-like" constructs interact with coroutines?
Jay