lua-users home
lua-l archive

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

There are already have ways to detect global variable accesses at compile time, so the chunk construct gets you both syntax checking and inadvertent upvalue detection (since the upvalues turn into globals). We use the runtime absence of upvalue checks in Lightroom, but the point was to have a construct that could generate warnings at compile time.

The notion of simply having an option to turn off upvalues is intriguing.