Article View: gnu.g++.help
Article #719Re: constant problem
From: Derick J.R. Qua-Gonzalez
Date: Tue, 01 Aug 1995 09:33
Date: Tue, 01 Aug 1995 09:33
47 lines
2816 bytes
2816 bytes
srd@peper.inesc.pt (Savita Rauto Dessai) writes: >Helllo, >I'm trying to compile a file with g++-2.7 where I declare: >. >. >. >const int false = 0; >. >. >. >It gives an error : parse error before 'false'. >It seems not to recognize constants!... No, honey, that's not the case. In gcc-2.7.0, the compiler is sticking to the Working Paper/Draft C++ Standard, which has a bool type that takes on the values true and false. Best regards, Derick. -- +-----------------------------------------------------------------------------+ | Derick R. Qua-Gonzalez | ________ | | Department of High Energy Physics, California State University | \ / | | dqua@EarthLink.Net | \ / | | ``It is better to be hated for what one is, | \ / | | than loved for what one is not.'' (A. Gide) | G \/ USA| +------------------------------------------------------------------+----------+ | mQBNAy/qJJMAAAECANBCB543eTUkdG8Mqx6K2cm3WxCVtKY8ZbB9WY6A2Ne4dQi8 | PGP2.6.2 | | xh7OxjHXP/eXp5BSbmVAihEGd7r+5g/yknko56kABRG0MERKUiBRdWEtR29uemFs | Public | | ZXogPGRxdWFAUHJvbWV0aGV1cy5FYXJ0aGxpbmsuTmV0Pg== | KeyBlock | | =70DW | 06.20.95 | +------------------------------------------------------------------+----------+ -- +-----------------------------------------------------------------------------+ | Derick R. Qua-Gonzalez | ________ | | Department of High Energy Physics, California State University | \ / | | dqua@EarthLink.Net | \ / | | ``It is better to be hated for what one is, | \ / | | than loved for what one is not.'' (A. Gide) | G \/ USA| +------------------------------------------------------------------+----------+ | mQBNAy/qJJMAAAECANBCB543eTUkdG8Mqx6K2cm3WxCVtKY8ZbB9WY6A2Ne4dQi8 | PGP2.6.2 | | xh7OxjHXP/eXp5BSbmVAihEGd7r+5g/yknko56kABRG0MERKUiBRdWEtR29uemFs | Public | | ZXogPGRxdWFAUHJvbWV0aGV1cy5FYXJ0aGxpbmsuTmV0Pg== | KeyBlock | | =70DW | 06.20.95 | +------------------------------------------------------------------+----------+
Technical Details
Message-ID:
<dqua.807269588@nntp.earthlink.net>Path:
arc1-ca.pugleaf.net!nntp.earthlink.net!dquaReferences:
<9507231306.AA03908@peper.inesc.pt>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!nntp.earthlink.net!dqua From: dqua@earthlink.net (Derick J.R. Qua-Gonzalez) Newsgroups: gnu.g++.help,comp.lang.c++ Subject: Re: constant problem Date: 1 Aug 95 09:33:08 GMT Organization: Earthlink Network, Inc. Message-ID: <dqua.807269588@nntp.earthlink.net> References: <9507231306.AA03908@peper.inesc.pt> NNTP-Posting-Host: 204.250.34.121 X-Newsreader: NN version 6.5.0 #1