lua-users home
lua-l archive

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

On Wed, Feb 16, 2011 at 7:51 PM, Tony Finch <> 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.

It would be more in the spirit of Lua (that abused term) if the
constness of a value could be deduced from its usage like this.

steve d.