[Issue 1351] Discrepancies in the language specification
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 26 12:24:07 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1351
------- Comment #4 from aziz.kerim at gmail.com 2007-07-26 14:24 -------
In http://www.digitalmars.com/d/expression.html#CharacterLiteral you write:
"Character literals are single characters and resolve to one of type char,
wchar, or dchar. If the literal is a \u escape sequence, it resolves to type
wchar. If the literal is a \U escape sequence, it resolves to type dchar.
Otherwise, it resolves to the type with the smallest size it will fit into."
Which type does a character literal with an HTML entity have (e.g. '\&xyz;')?
Please clarify if this correct:
uint c;
// statements ...
if (c < 128)
// c is char
else if(c <= 0xFFFF)
// c is wchar
else
// c is dchar
--
More information about the Digitalmars-d-bugs
mailing list