martinho....@gmail.com
unread,Dec 6, 2012, 1:58:25 PM12/6/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to std-dis...@isocpp.org
I just came across §2.3p2 which concerns universal character names and reads "(...) Additionally, if the hexadecimal value for a universal-character-name outside the c-char-sequence, s-char-sequence, or r-char-sequence of a character or string literal corresponds to a control character (in either of the ranges 0x00–0x1F or 0x7F–0x9F, both inclusive) or to a character in the basic source character set, the program is ill-formed."
This means that I cannot write U"\U00000020", and must instead write U" " or U"\x00000020". I cannot find a reasoning for forbiding the first form. Can anyone who knows a good reason for this chime in?