This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C: Proposal: Warning using char* a; if(a == "")


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]