lua-users home
lua-l archive

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


>>>>> "Hans" == Hans van der Meer <havdmeer@ziggo.nl> writes:

 Hans> A final remark about the documentation of Lua 5.4, if permitted.
 Hans> I understood that in this version variables can be declared as
 Hans> 'const name=value', but could not find this in the online
 Hans> documentation. I searched for const, but nothing came up. Am I
 Hans> mistaken about the const modifier?

The syntax is:

    local myvar <const> = 123

see http://www.lua.org/manual/5.4/manual.html#3.3.7

-- 
Andrew.