1 matches bool, 2 matches long

Walter Bright newshound2 at digitalmars.com
Sun Apr 28 01:40:03 PDT 2013


On 4/27/2013 9:38 PM, kenji hara wrote:
> On the other hand, D looks like having *special rule* of 0 and 1 literal for
> boolean type. Even if the underlying rule is sane (partial ordering rule and
> VRP), the combination makes weird behavior.

Again, whether it is "weird" or not comes from your perspective. From mine, a 
bool is a 1 bit integer. There is nothing weird about its behavior - it behaves 
just like all the other integer types.



More information about the Digitalmars-d mailing list