Implicit enum conversions are a stupid PITA

bearophile bearophileHUGS at lycos.com
Thu Mar 25 04:58:58 PDT 2010


Walter Bright:
>Disabling implicit integral conversions would make it unbearable to use.<

Implicit conversion from signed to unsigned is too much unsafe (if you don't have integer overflows).
C# can teach us two lessons on this. C# has disabled some implicit conversions and keeps other of them.

Bye,
bearophile



More information about the Digitalmars-d mailing list