[Issue 13794] New: Vector operations with bigints too
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Nov 29 05:21:59 PST 2014
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 at puremagic.com
Reporter: bearophile_hugs at 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
--
More information about the Digitalmars-d-bugs
mailing list