Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #26103

Re: Why No Supplemental Characters In Character Literals?

From Lew <noone@lewscanon.com>
Newsgroups comp.lang.java.programmer
Subject Re: Why No Supplemental Characters In Character Literals?
Date 2011-02-04 01:34 -0500
Organization albasani.net
Message-ID <iig6j2$dul$2@news.albasani.net> (permalink)
References <iig4k2$sus$1@lust.ihug.co.nz>

Show all headers | View raw


On 02/04/2011 12:59 AM, Lawrence D'Oliveiro wrote:
> Why was it decreed in the language spec that characters beyond U+FFFF are
> not allowed in character literals, when they are allowed everywhere else (in
> string literals, in the program text, in character and string values etc)?

Because a 'char' type holds only 16 bits.

-- 
Lew
Ceci n'est pas une fenĂȘtre.
.___________.
|###] | [###|
|##/  | *\##|
|#/ * |   \#|
|#----|----#|
||    |  * ||
|o *  |    o|
|_____|_____|
|===========|

Back to comp.lang.java.programmer | Previous | Next | Find similar


Thread

Re: Why No Supplemental Characters In Character Literals? Lew <noone@lewscanon.com> - 2011-02-04 01:34 -0500

csiph-web