home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16547 < prev    next >
Encoding:
Text File  |  1992-11-18  |  965 b   |  25 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!microsoft!hexnut!jimad
  3. From: jimad@microsoft.com (Jim Adcock)
  4. Subject: Re: self-reproducing C++ program
  5. Message-ID: <1992Nov18.231730.16817@microsoft.com>
  6. Date: 18 Nov 92 23:17:30 GMT
  7. Organization: Microsoft Corporation
  8. References: <1919@alcbel.be> <1992Nov17.144939.21793@cc.gatech.edu>
  9. Lines: 14
  10.  
  11. In article <1992Nov17.144939.21793@cc.gatech.edu> brianm@cc.gatech.edu (Brian N. Miller) writes:
  12. |> <<';'<<
  13. |
  14. |This won't work, because character constants are converted to ints.
  15. |This will output the ascii decimal equivalent of ';', right?
  16.  
  17. wrong -- unless you have a very old C++ compiler.  For some years
  18. now C++ compilers have recognized chars as a distinct type, including
  19. char constants.  This issue is different then in C++ than in C.
  20. Further, recently the C++ standardization committee has voted to 
  21. recognize wide char types as also being their own distinct type, thus allowing
  22. proper Unicode I/O via streams.
  23.  
  24.  
  25.