Unicode in C++ source files

From: Alex J. Dam (alexjdam_at_yahoo.com.br)
Date: 01/30/04


Date: Fri, 30 Jan 2004 20:28:37 -0200


Hi.

I found this in the 1997 standard draft under 2.10:

An identifier is an arbitrarily long sequence of letters and digits.
Each universal-character-name in an identifier shall designate a char-
acter whose encoding in ISO 10646 falls into one of the ranges speci-
fied in _extendid_.

Does it really mean that C++ compilers should accept identifiers with
accented letters and all?
If it does, is there a compiler which accepts them?

Thanks.

-- 
Alex J. Dam
"Oh, I got plenty o' nuttin',
an' nuttin's plenty fo' me"
 -- Porgy


Relevant Pages

  • Re: Why (or not) use single letter variable names?
    ... > Russian letters, and I do not know their names. ... The question of which characters ought to be used for creating variable ... standard has its own identifier syntax; ... Using full Unicode letters and ideographs in c and similar languages ...
    (sci.math)
  • Re: Set bits
    ... Tim Hagan wrote: ... > an underscore, followed by any sequence of digits and/or upper or lower ... have mentioned that underscores are considered to be letters and can ... appear anywhere in identifier names. ...
    (comp.lang.c)
  • Re: R6RS lexical syntax
    ... Most identifier sallowed by other programming languages are also ... In general, ___a sequence of letters, digits, ...
    (comp.lang.scheme)
  • Re: idiot question about preg_match and regex
    ... It's identifier suggests that it should ... I apologize for asking such a poor question. ... This comes back true if there are no letters in $subject, ... Prev by Date: ...
    (comp.lang.php)
  • Re: C# Plugin system - same interface in two different assemblies...
    ... easy to see why the .NET designers went with the tried and true approach of just checking a unique identifier for each type. ... This is essentially what you achieve with COM by saying "yes, I implement this interface with this UID too", but then you want it by structural compatibility, not an agreed-upon UID. ... I'm not sure what you mean, as GCC, Intel, and Microsoft's compilers all produce compatible plugins for several products in our product suite. ... As long as you don't get subtle with multiple inheritance, method pointers or exceptions, those compilers will all produce the same low-level binary stuff to make sure it'll work with the other compilers. ...
    (microsoft.public.dotnet.languages.csharp)