[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: upvals in Lua bytecode
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 2 Jun 2011 08:45:50 -0300
> 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
http://lua-users.org/lists/lua-l/2006-10/msg00206.html
This has often been mentioned here before. See these threads:
http://lua-users.org/lists/lua-l/2010-07/msg00512.html
http://lua-users.org/lists/lua-l/2009-11/msg01020.html
http://lua-users.org/lists/lua-l/2008-02/msg00814.html
http://lua-users.org/lists/lua-l/2007-08/msg00409.html
> 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.