lua-users home
lua-l archive

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


On Fri, Jun 28, 2019 at 10:49 PM Sergey Kovalev <kovserg33@gmail.com> wrote:
> I see no problem even in this case:
>
...
>
> You use files after they have been closed. So you will have an error
> in case of real files. Don't do like this.
>

I see how to use correctly your code. What I want to stress is that it
let you to define, by mistake, a "Scope" that spawn multiple
coroutines and functions, and that can also be interrupted in the
middle of a coroutine.

This for me is an issue. However... thinking deeper... maybe the
<toclose> have a similar issue too... :(