1 matches bool, 2 matches long

deadalnix deadalnix at gmail.com
Fri Apr 26 00:58:35 PDT 2013


On Friday, 26 April 2013 at 06:42:28 UTC, Manipulator wrote:
> On Friday, 26 April 2013 at 06:18:29 UTC, deadalnix wrote:
>> On Friday, 26 April 2013 at 06:01:27 UTC, Walter Bright wrote:
>>> The real issue is do you want to have the implicit 
>>> conversions:
>>>
>>> 0 => false
>>> 1 => true
>>>
>>> or would you require a cast?
>>
>> Yes.
>
> +1
>
> What about the implicit conversion for the other types? I could 
> imagine that they could cause similar bugs. Why not get rid of 
> the implicit conversion? How about yet another compiler flag?

No no no no, please no.


More information about the Digitalmars-d mailing list