Semantics of ^^, Version 3 (Final?)
bearophile
bearophileHUGS at lycos.com
Wed Dec 9 05:13:44 PST 2009
KennyTM~:
> Because 3^^-1 would become 3^^4294967295
I agree, no unsigned values, please.
In D unsigned values are bug-prone, it's better to avoid them when possible, they are useful almost only when you need a bitfield (they are useful for arithmetic only exceptionally, when you really need a positive range larger than the signed one and you can't use a value with more bits).
Bye,
bearophile
More information about the Digitalmars-d
mailing list