1 matches bool, 2 matches long

Walter Bright newshound2 at digitalmars.com
Fri Apr 26 01:38:49 PDT 2013


On 4/26/2013 1:14 AM, Maxim Fomin wrote:
> I argue the correct solution is to call integer function with integer parameter
> when integer value is passed.

I'm sorry, but that's an assertion not an argument.

The other issue with your assertion, as I explained to Ali, is that D does not 
have a notion of "better" implicit conversions, and it would be a tragedy to add 
them.

> Adjusting to buggy compiler behavior isn't a good idea.

It's working as designed - it is not a compiler bug.



More information about the Digitalmars-d mailing list