lua-users home
lua-l archive

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


Am 31.05.19 um 13:05 schröbte Sergey Zakharchenko:
Hello list,

Hi!


Does it make sense to give coroutines a metatable that would have
__close call coroutine.kill ? I think this can likely be done using
the debug library, but it seems to be natural behaviour to use as
default...

And maybe functions should have a default toclose behavior as well. Anyway, we probably want the `local <const> function f() ... end` syntax sugar even if functions don't get a default toclose behavior.


Best regards,


Philipp