Re: Umlaut in identifier
- From: "Hendrik Schober" <SpamTrap@xxxxxx>
- Date: Tue, 9 Aug 2005 13:43:54 +0200
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
.
- Follow-Ups:
- Re: Umlaut in identifier
- From: j.robel
- Re: Umlaut in identifier
- References:
- Umlaut in identifier
- From: j.robel
- Re: Umlaut in identifier
- From: Tim Roberts
- Re: Umlaut in identifier
- From: Hendrik Schober
- Re: Umlaut in identifier
- From: John Carson
- Re: Umlaut in identifier
- From: j.robel
- Umlaut in identifier
- Prev by Date: Re: Minimizing console
- Next by Date: MessageBox() issue with MB_RIGHT and MB_RTLREADING
- Previous by thread: Re: Umlaut in identifier
- Next by thread: Re: Umlaut in identifier
- Index(es):
Relevant Pages
|