[Issue 259] Comparing signed to unsigned does not generate an error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 27 09:50:25 UTC 2021


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

--- Comment #70 from Basile-z <b2.temp at gmx.com> ---
The promotion trick works unless both operand are 64 bits (and considering that
cent/ucent are not a thing yet) but that would be a progress. For long cmp
ulong a warning could be emitted.

This topic should make its come back on the news group. Even if the current
behavior is layered on C semantics that does not mean that it could not change.
Following C is not a sacrosant rule.

--


More information about the Digitalmars-d-bugs mailing list