September 12, 2023 [Issue 24142] New: Allow casting Int128 to integral and floating types | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24142 Issue ID: 24142 Summary: Allow casting Int128 to integral and floating types Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: phobos Assignee: nobody@puremagic.com Reporter: n8sh.secondary@hotmail.com Currently Unsupported: --- import std.int128; int fun1(Int128 a) { return cast(int) a; } double fun2(Int128 a) { return cast(double) a; } --- Error: template instance `opCast!int` does not match template declaration `opCast(T : bool)()` Error: template instance `opCast!double` does not match template declaration `opCast(T : bool)()` -- |
Copyright © 1999-2021 by the D Language Foundation