Article View: comp.std.c++
Article #1744Re: true/false literal std question
From: mfinney
Date: Sat, 19 Aug 1995 15:04
Date: Sat, 19 Aug 1995 15:04
23 lines
1665 bytes
1665 bytes
In <4135i2$744@engnews2.Eng.Sun.COM>, clamage@Eng.Sun.COM (Steve Clamage) writes: >They are language keywords, and are not interpreted by the preprocessor. >Just as you do not have 'int', 'char', or 'double' in the preprocessor, >you do not have 'bool' either. 'true' and 'false' are not aliases for 1 >and 0, they are literals of type bool. > >There are no types in the preprocessor; everything is a long integer. Steve, 'int', 'char', 'double' and 'bool' are types and quite properly the preprocessor knows nothing about them. However, '0', '1', 'true' and 'false' are NOT types, they are literals and therefore SHOULD be recognized by the preprocessor. It would be very annoying to have the committee fix the "boolean" problem -- and then make us do the same thing all over again for the preprocessor. Michael Lee Finney [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<413k9s$ra2@mujibur.inmind.com>Path:
arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamageReferences:
<40jjuu$qnk@mujibur.inmind.com> <4135i2$744@engnews2.Eng.Sun.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamage From: mfinney@inmind.com Newsgroups: comp.std.c++ Subject: Re: true/false literal std question Date: 19 Aug 1995 15:04:31 GMT Organization: In Mind, Inc. Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <413k9s$ra2@mujibur.inmind.com> References: <40jjuu$qnk@mujibur.inmind.com> <4135i2$744@engnews2.Eng.Sun.COM> Reply-To: mfinney@inmind.com NNTP-Posting-Host: taumet.eng.sun.com Content-Type: text X-Nntp-Posting-Host: finneyman.inmind.com X-Newsreader: IBM NewsReader/2 v1.2 Content-Length: 832 Originator: clamage@taumet