lua-users home
lua-l archive

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


On Friday 09 January 2004 14.48, Luiz Henrique de Figueiredo wrote:
> >What is a valid lua variable name?
>
>    Identifiers in Lua can be any string of letters, digits, and
>    underscores, not beginning with a digit. This coincides with the
>    definition of identifiers in most languages.
>
>    http://www.lua.org/manual/5.0/manual.html#2.1

BTW, exactly what is a letter? :-)

I think I've seen some languages that accept pretty much anything in 
the 128..255 range (where å, ä, ö, é, ñ, ü and whatnot reside in many 
environments) as letters, but I have a bad feeling about it... If 
nothing else, it can make the code hard or impossible to read and 
edit on a machine with a different local than what the author was 
using.


//David Olofson - Programmer, Composer, Open Source Advocate

.- Audiality -----------------------------------------------.
|  Free/Open Source audio engine for games and multimedia.  |
| MIDI, modular synthesis, real time effects, scripting,... |
`-----------------------------------> http://audiality.org -'
   --- http://olofson.net --- http://www.reologica.se ---