Comment #0 by bearophile_hugs — 2010-06-10T04:46:47Z
This D2 program looks correct:
import std.bigint: BigInt;
void main() {
BigInt a = 10;
const BigInt b = 2;
a = a * b;
}
DMD v2.047beta prints at compile-time:
test.d(5): Error: 'a' is not of arithmetic type, it is a BigInt
test.d(5): Error: 'b' is not of arithmetic type, it is a const(BigInt)
I don't know how to define an immutable BigInt.
Comment #1 by clugdbug — 2010-06-17T04:02:50Z
*** Issue 4340 has been marked as a duplicate of this issue. ***
Comment #2 by clugdbug — 2012-07-20T00:07:13Z
This is blocked by bug 8395.
Comment #3 by andrei — 2013-03-10T19:02:22Z
Assigning to Don (not sure whether the ID/email is still correct). Don?
Comment #4 by joseph.wakeling — 2013-09-30T10:47:00Z