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

FeepingCreature <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from FeepingCreature <[email protected]> ---
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