lua-users home
lua-l archive

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

> If there was a way to plug into global name lookup in the compiler, we
> could accurately describe to the compiler what global variables exist

See a patch in

This has often been mentioned here before. See these threads:

> It might even be possible to compile expressions such as string.byte
> to a constant reference in the byte code, so that the need for the
> "local byte = string.byte" pattern goes away.

This is not hard to do with token filters.