<div dir="ltr">2013/4/28 Walter Bright <span dir="ltr"><<a href="mailto:newshound2@digitalmars.com" target="_blank">newshound2@digitalmars.com</a>></span><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">On 4/27/2013 8:11 AM, kenji hara wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Walter, now I changed my opinion. It seems not correct that being regarded bool<br>
type as one of the integer.<br>
How about?<br>
</blockquote>
<br></div>
Both C and C++ regard bool as an integer, and implicitly convert 1/0 to true/false.<br>
<br>
What C++ doesn't have is VRP and partial ordering of functions. (But it does have partial ordering of template functions.)<br>
</blockquote></div><br></div><div class="gmail_extra" style>I'm not argue that we should remove the implicit conversion from 1/0 to bool.</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style><div class="gmail_extra">
I don't have so much knowledge about C/C++ language spec, but for the issue case C++ makes "ambiguous error".</div><div class="gmail_extra">Contrary of that, D's current behavior looks to me it is going back to past.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra" style>Kenji Hara</div></div></div>