home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!news.bbn.com!usc!cs.utexas.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!allegra!alice!bs
- From: bs@alice.att.com (Bjarne Stroustrup)
- Newsgroups: comp.lang.c++
- Subject: Re: New C++ type: boole
- Summary: w_char is a real type
- Message-ID: <23357@alice.att.com>
- Date: 30 Jul 92 13:07:06 GMT
- References: <DOUGM.92Jul26151240@titan.cs.rice.edu> <1992Jul29.195155.15634@microsoft.com>
- Organization: AT&T Bell Laboratories, Murray Hill NJ
- Lines: 20
-
-
-
- jimad@microsoft.com (Jim Adcock @ Microsoft Corporation) writes
-
- > A similar, and more important problem [IMHO] occurs because w_char is not
- > a separate type:
- >
- > w_char chSqrt = '\x221A';
- >
- > cout << chSqrt;
- >
- > doesn't cause the Unicode square root sign to be printed out, but rather
- > some decimal integer.
-
- At the Toronto meeting of ANSI-X3J16/ISO-WG21 meeting w_char was voted a separate
- type. This is of course an incompatibility with C, but it was decided that the
- benefits (in C++) of having w_char a real type so that the overloading mechanism
- works for it outweighed the incompatibility problems. This decision closely matches
- the decision to give character literals, such as 'a', the (obvious) type char rather
- than int. Naturally, L'a' is of type w_char.
-