lua-users home
lua-l archive

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


>Luiz Henrique de Figueiredo wrote:
>> That depends on the current locale. Try setting a Korean locale.
>> Seeting a Portuguese locale allows identifiers with accents, such as "número".
>
>Then the obvious question is: what happens when you give
>your script to someone in a different locale?

Nobody is forcing you to use "strange" identifiers. If you do, you should be
aware that your script may not be portable. For some people, being able to
use "strange" identifiers may be more important than portability.

The point here is that in ANSI C it just happens that isalpha and isalnum
respect the current locale, and so "strange" identifiers are allowed.
It's easier to allow them than not...
--lhf