[Issue 13606] erroneous overflow error in negative long literal
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Oct 12 08:50:05 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13606
--- Comment #5 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
(In reply to bearophile_hugs from comment #4)
> Currently D accepts assignments from signed without errors or warnings, this
> is an example of "weak typing" in D:
yeah, it's bad. one can argue that we are not losing a bit of information here,
but i think that this is wrong: we losing sign flag. so such assignment should
be considered "unsafe".
with stressed safety it's strange that such assignments are allowed.
--
More information about the Digitalmars-d-bugs
mailing list