Sorry, i forgot to ask you why in this case Lua accept this way to define identifiers with an accent:
table={}
table["caché"]="test"
isn't this way equivalent to: table.caché="test" ? However the first one is accepted (i can do a print of table["caché"]) but the second gives an error as you explain.
De: "Tim Hill" <drtimhill@gmail.com>
À: "Lua mailing list" <lua-l@lists.lua.org>
Envoyé: Mercredi 13 Août 2014 00:02:54
Objet: Re: Accented variable names
Hi,
Could you please tell me if it possible to use accented variable names in Lua ? I'm using a the IDE named SciTE (adapted to french) to do some Lua code and i can use french accented character inside a string, but i always have an error when i try to use and accented variable name like "caché” :
Lua only accepts basic “A” .. “Z” and “a” to “z” as letters allowed in identifiers.
—Tim