https://issues.dlang.org/show_bug.cgi?id=21151

FeepingCreature <default_357-l...@yahoo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |default_357-l...@yahoo.de

--- Comment #4 from FeepingCreature <default_357-l...@yahoo.de> ---
I'm completely on mw's side here, even understanding why D does this. Silently
casting negative signed to unsigned violates the foundational principle that at
least on built-in types, implicit conversions should never throw away data.

Though I think it should be a spec enhancement issue, to correct 6.8.1.4.4:
"The signed type is converted to the unsigned type."
https://dlang.org/spec/type.html#usual-arithmetic-conversions

--

Reply via email to