Article View: comp.std.c++
Article #1740true/false literal std question
From: mfinney
Date: Mon, 14 Aug 1995 16:50
Date: Mon, 14 Aug 1995 16:50
13 lines
1242 bytes
1242 bytes
The draft standard introduces two new reserved identifiers -- "true" and "false" (among others, of course). These play the role of literals for the new bool type. My question, is: are these new literals supported by the preprocessor? The new bool type is designed to replace the many variants of "boolean", "true" and "false" found everywhere. However many, if not most, of the existing definitions can be used in preprocessor expressions. If it is NOT possible to use the new true/false literals in preprocessor expressions then they will have to be duplicated just for preprocessing -- obviously not desirable. Does anyone know the answer to this question? Thanks. Michael Lee Finney
Technical Details
Message-ID:
<40jjuu$qnk@mujibur.inmind.com>Path:
arc1-ca.pugleaf.net!cs.mu.OZ.AU!bounce-backShow Full Headers
Complete Article Headers
Newsgroups: comp.std.c++ Path: arc1-ca.pugleaf.net!cs.mu.OZ.AU!bounce-back From: mfinney@inmind.com Subject: true/false literal std question Status: RO Message-ID: <40jjuu$qnk@mujibur.inmind.com> To: comp-std-c++@uunet.uu.net Originator: fjh@munta.cs.mu.OZ.AU Sender: news@cs.mu.OZ.AU (CS-Usenet) Reply-To: mfinney@inmind.com Organization: In Mind, Inc. X-Newsreader: IBM NewsReader/2 v1.2 X-Original-Date: 13 Aug 1995 01: 19:26 GMT Date: Mon, 14 Aug 1995 16:50:17 GMT Return-Path: <daemon@ncar.UCAR.EDU> Approved: fjh@munta.cs.mu.OZ.AU