Spec on casting to integer with smaller range than value
Dennis
dkorpel at gmail.com
Sat Mar 28 15:47:04 UTC 2020
On Saturday, 28 March 2020 at 15:33:35 UTC, kinke wrote:
> that should probably be explicitly mentioned as undefined
> behavior, to account for the observed LLVM/gcc behavior.
Which would make `cast(int) someFloat` not allowed in @safe code.
Is there any chance LLVM could be instructed to treat it as
implementation-defined behavior?
More information about the Digitalmars-d
mailing list