home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / std / cplus / 1899 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.2 KB

  1. Path: sparky!uunet!pilchuck!fnx!nazgul!bright
  2. From: bright@nazgul.UUCP (Walter Bright)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: wchar_t as a basic type
  5. Keywords: wchar_t
  6. Message-ID: <1534@nazgul.UUCP>
  7. Date: 22 Dec 92 08:53:37 GMT
  8. References: <1992Nov10.092148.430@leland.Stanford.EDU> <1992Nov14.200111.14262@sophists.com> <1507@nazgul.UUCP> <1992Nov29.002658.16405@lucid.com> <1524@nazgul.UUCP> <1992Dec9.103811.28262@alf.uib.no>
  9. Reply-To: bright@nazgul.UUCP (Walter Bright)
  10. Organization: Zortech, Seattle
  11. Lines: 12
  12.  
  13. In article <1992Dec9.103811.28262@alf.uib.no> yngvar@novaja.imr.no (Yngvar Foelling) writes:
  14. /Sorry about following up this so long afterwards.  But here's a point that I
  15. /didn't see mentioned in the discussion.
  16. /wchar_t is the type of a wide character constant, i.e. L'x'.
  17. /Walter, you're a compiler writer.  Would you like the idea of making the type
  18. /of a constant, defined in the language, a type from the library?
  19.     It already is. L'x' is a wchar_t, which is defined in the library.
  20. /How would you handle the correct insertion of a string like this:
  21. /cout << L"Wide string constant";
  22.     The compiler "knows" about wchar_t, just like it does now
  23.     for ANSI C. No, it is not as clean as I would like, but the
  24.     L wart is the only one I've found so far.
  25.