www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13391] New: BigInt division by ulong rejected

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 puremagic.com
          Reporter: peter.alexander.au 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.

--
Aug 28 2014