digitalmars.D.bugs - [Issue 13794] New: Vector operations with bigints too
- via Digitalmars-d-bugs (24/24) Nov 29 2014 https://issues.dlang.org/show_bug.cgi?id=13794
https://issues.dlang.org/show_bug.cgi?id=13794 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