lua-users home
lua-l archive

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


what are the reasons why <const> is necessary in Lua?

does this enable optimized and faster bytecode? (I hope so)

if this does not enable optimized bytecode, in which other ways can this be useful? 
It is easy to check the code and verify if a variable is assigned once or multiple times - static analyzers always do that

   Andrea

--
Andrea Vitali