[Issue 13391] New: BigInt division by ulong rejected
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Aug 28 03:02:04 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13391
Issue ID: 13391
Summary: BigInt division by ulong rejected
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: normal
Priority: P1
Component: Phobos
Assignee: nobody at puremagic.com
Reporter: peter.alexander.au at gmail.com
dmd 2.066
import std.bigint;
void main()
{
BigInt x = BigInt(1);
x /= 1U; // OK
x /= 1UL; // std/bigint.d(166): Error: static assert (true && false) is false
}
Issue 7973 is related. Don says this is was intentional due to some
implementation issues, but should be solvable now.
Expected: All integer operations should exist on BigInt for all integral types.
--
More information about the Digitalmars-d-bugs
mailing list