[Date Prev][Date Next][Thread Prev][Thread Next]
- 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
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.