lua-users home
lua-l archive

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

> I still think it's useful to have a mode where uncontrolled global
> access is verboten and a compile-time error.  The current workarounds
> are not so elegant, often involving a custom build step that e.g. for
> Lua 5.1 checks out any GETGLOBAL instructions.

In both 5.1 and 5.2, the place to start patching is at singlevar in lparser.c,
right after the call to singlevaraux. See for instance

See also