home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / std / cplus / 2101 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.2 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!texsun!digi!mharriso
  2. From: mharriso@digi.lonestar.org (Mark Harrison)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: stringize preprocessing operator?
  5. Message-ID: <1993Jan21.211042.6054@digi.lonestar.org>
  6. Date: 21 Jan 93 21:10:42 GMT
  7. References: <1993Jan18.192417.16933@digi.lonestar.org> <1993Jan19.181741.4779@taumet.com>
  8. Organization: DSC Communications Corp, Plano, TX
  9. Lines: 17
  10.  
  11. In article <1993Jan19.181741.4779@taumet.com> steve@taumet.com (Steve Clamage) writes:
  12. >
  13. >Preprocessing in C++ is supposed to be the same as in Standard C
  14. >(except for // comments).  The ARM tries to say that, and the
  15. >C++ Standard will make it so.
  16. >
  17. >Are you sure the Lucid compiler does not provide full Standard C
  18. >preprocessing in C++ mode?  Perhaps the manual is a bit misleading.
  19.  
  20. It turns out there are two C++ modes, -XF (ARM compatible) and -Xf
  21. (cfront 2.1 compatible).  -XF uses ansi style preprocessing, while -Xf
  22. uses K&R style.  The preprocessing style can be specified by using -XAp
  23. for ansi preprocessing and -XKp for K&R style.
  24.  
  25. Jerry Schwartz (jss@lucid.com) was kind enough to point this out to me.
  26. -- 
  27. Mark Harrison, mharriso@dsccc.com
  28.