2013/4/28 Walter Bright <[email protected]> > On 4/27/2013 8:11 AM, kenji hara wrote: > >> Walter, now I changed my opinion. It seems not correct that being >> regarded bool >> type as one of the integer. >> How about? >> > > Both C and C++ regard bool as an integer, and implicitly convert 1/0 to > true/false. > > What C++ doesn't have is VRP and partial ordering of functions. (But it > does have partial ordering of template functions.) >
I'm not argue that we should remove the implicit conversion from 1/0 to bool. I don't have so much knowledge about C/C++ language spec, but for the issue case C++ makes "ambiguous error". Contrary of that, D's current behavior looks to me it is going back to past. Kenji Hara
