This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C: Proposal: Warning using char* a; if(a == "")
- To: Mike Stump <mrs at windriver dot com>
- Subject: Re: C: Proposal: Warning using char* a; if(a == "")
- From: Peter Schlaile <udbz at rz dot uni-karlsruhe dot de>
- Date: Fri, 5 Nov 1999 10:57:09 +0100 (CET)
- cc: gcc at gcc dot gnu dot org
On Thu, 4 Nov 1999, Mike Stump wrote:
> string root = "\\";
> > if (root == "\\")
>
> > The code is perfectly legal but IMHO never makes sense.
>
> Use C++, it works just fine! :-)
Well, if you like to convert the complete WINE source to C++, go ahead ;-)
By the way: I think the initial mistake was caused by a C++ - programmer,
who was forced to code in C ...
Greetings,
Peter
> Sorry, couldn't resist.
So did I ;-)
---
Peter Schlaile *** eMail udbz@rz.uni-karlsruhe.de