www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13794] New: Vector operations with bigints too


          Issue ID: 13794
           Summary: Vector operations with bigints too
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: bearophile_hugs eml.cc

I think this code should work (and be replaced by a loop by the front-end):

void main() {
    import std.bigint;
    BigInt[2] a;
    a[] += a[];

dmd 2.067alpha:

test.d(4,9): Error: invalid array operation 'a[] += a[]' because BigInt doesn't
support necessary arithmetic operations

Nov 29 2014