lua-users home
lua-l archive

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


On Tue, 21 Jul 2020 at 12:19, Egor Skriptunoff
<egor.skriptunoff@gmail.com> wrote:

> I have a problem while trying to use a to-be-closed variable as usual upvalue.

One problem with the to-be-closed variable approach is that it exposes
the variable ... so all kinds of issues arise from that.
The 'defer' approach on the other hand is to hide all the upvalue - so
it avoids a whole class of issues / questions / misuses.

Regards