1 matches bool, 2 matches long

Walter Bright newshound2 at digitalmars.com
Fri Apr 26 00:53:59 PDT 2013


On 4/25/2013 11:42 PM, Manipulator wrote:
> 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?

Implicit conversions make the menagerie of integer types tractable. Explicit 
casts are a sledgehammer that often causes bugs rather than eliminates them.

> How about yet another compiler flag?

Compiler flags that alter the meaning of the language are not the solution.



More information about the Digitalmars-d mailing list