Re: Umlaut in identifier

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



j.robel <nospam@xxxxx> wrote:
> > >> ... Most international
> > >> alphabetic characters are perfectly valid in an identifier...
> > I think the relevant sections are 2.10 and Annex E.
>
> The C++ Standard refers to identifiers containing "universal-character-name"
> characters (http://www.open-std.org/jtc1/sc22/open/n2356/lex.html#lex.name).
> According to the grammar this is "\u hex-quad" or "\U hex-quad hex-quad".
>
> So this code is Standard compliant:
> int bl\u00f6de = 5;
> return bl\u00f6de;
>
> ...but not his code:
> int blöde = 5;
> return blöde;
>
> The first example compiles in vc 7.1 the latter not:

You mean the first example compiles /not/ and
the latter does. At least, that's what I see.

> [...]
> Jürgen Robel

Schobi

--
SpamTrap@xxxxxx is never read
I'm Schobi at suespammers dot org

"Coming back to where you started is not the same as never leaving"
Terry Pratchett


.



Relevant Pages

  • Re: Upgrade to 8.14.2 stops automatic MIME conversion to 8-bit
    ... I've confirmed that the same issue applies to my compiles of 8.14.3. ... it on Solaris 8 Sparc and Solaris 10 x86. ... then those characters could be ...
    (comp.mail.sendmail)
  • Re: The infamous ^Z problem
    ... Open mode should be "w+b". ... This compiles on xlC and HP's ANSI C compilers. ... the control characters in the file, in the second statement the compiler ... would have found the ^Zs too, but on a SINGLE platform it doesn't. ...
    (comp.lang.c)
  • Re: The infamous ^Z problem
    ... Open mode should be "w+b". ... This compiles on xlC and HP's ANSI C compilers. ... the control characters in the file, in the second statement the compiler ... it would have found the ^Zs too, but on a SINGLE platform it doesn't. ...
    (comp.lang.c)
  • Re: The infamous ^Z problem
    ... Open mode should be "w+b". ... This compiles on xlC and HP's ANSI C compilers. ... the control characters in the file, in the second statement the compiler ...
    (comp.lang.c)
  • Re: Umlaut in identifier
    ... > Hello Schobi, ... > compiles _without_ errors. ... German Win2k. ... > Jürgen Robel ...
    (microsoft.public.vc.language)