Article View: comp.std.c++
Article #1544Re: What!!! true and false not identifiers?
From: Leshek Fiedorowicz
Date: Wed, 02 Aug 1995 15:11
Date: Wed, 02 Aug 1995 15:11
29 lines
1849 bytes
1849 bytes
In <DCorpE.42I@lexmark.com>, leshek@lexmark.com(Leshek Fiedorowicz) writes:
>or maybe just declared as <const> in some header file. In general it is highly
>recommended to use <const> variables in place of <#defines> in C++.
>
Jarand is of course right saying (Jarand you don't mind me posting your mail message,
right :-):
"...
From: Jarand.Roynstrand
Date: 08-02-95 04:56:04 PM
Subject: Re: What!!! true and false not identifiers?
Hardly. If you re-read the original post you will se that he is definig a new
variable true local to the function in question. That would be perfectly
legal if true was a global <const>. (You may set up e.g. g++ to give a
warning on it though.)
The code fragment in question is only illegal if true is a key word.
jarand
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Leshek Fiedorowicz "Whatever I say it is just a gossip..." (Logan :-)
AIC / Lexmark - Printer Desktop Management Interface
leshek@lexmark.com Senior Computer Systems Engineer / Consultant
74170.2007@compuserve.com in Lexington KY, USA
Technical Details
Message-ID:
<DCovJB.DG3@lexmark.com>Path:
arc1-ca.pugleaf.net!newsjunkie.ans.net!lexmark!usenetReferences:
<fwv3ffkzm98.fsf@oculus.aifh.ed.ac.uk> <DCorpE.42I@lexmark.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++ Path: arc1-ca.pugleaf.net!newsjunkie.ans.net!lexmark!usenet From: leshek@lexmark.com(Leshek Fiedorowicz) Subject: Re: What!!! true and false not identifiers? Sender: usenet@lexmark.com (News Dude) Message-ID: <DCovJB.DG3@lexmark.com> Date: Wed, 2 Aug 1995 15:11:35 GMT Reply-To: leshek@lexmark.com(Leshek Fiedorowicz) References: <fwv3ffkzm98.fsf@oculus.aifh.ed.ac.uk> <DCorpE.42I@lexmark.com> Nntp-Posting-Host: leshek.pad.prtdev.lexmark.com Organization: AIC / Lexmark - Printer Desktop Management Interface Development X-Newsreader: IBM NewsReader/2 v1.09 X-Disclaimer: These views are the poster's and not necessarily those of Lexmark