lua-users home
lua-l archive

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


On Wed, Feb 16, 2011 at 6:51 PM, Tony Finch <dot@dotat.at> wrote:
When steve donovan proposed a "const" keyword earlier today, I wondered if
LuaJIT was able to spot that a local is only assigned to once so it could
automatically treat it as const.

Locals can also be modified with the debug library, constants cannot.