Comment #0 by bearophile_hugs — 2014-11-29T13:21:59Z
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
Comment #1 by robert.schadek — 2024-12-01T16:23:06Z