This is the mail archive of the
mailing list for the GCC project.
Re: Remove TRUE and FALSE
- To: David Korn <dkorn at pixelpower dot com>
- Subject: Re: Remove TRUE and FALSE
- From: Jason Merrill <jason at redhat dot com>
- Date: 27 Feb 2001 13:20:40 +0000
- Cc: "'Fergus Henderson'" <fjh at cs dot mu dot oz dot au>, Zack Weinberg <zackw at stanford dot edu>, gcc-patches at gcc dot gnu dot org
- References: <718D38CAB6E0D011B2C90060970C28A56426FA@EXCHANGESERVER>
>>>>> "David" == David Korn <firstname.lastname@example.org> writes:
> Isn't #defining TRUE just asking for future trouble because sooner
> or later somebody is liable to write "if ((condition) == TRUE)" ?
Oh, probably, but if they don't they'll write some other broken code.
And that's pretty easy to grep for.
> And if so, doesn't that really mean that the only use of TRUE is for
> initializing variables?
And function parameters. The main use of this is to make function calls