[Issue 4301] New: BigInt * const(BigInt) doesn't work well
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 10 04:46:48 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4301
Summary: BigInt * const(BigInt) doesn't work well
Product: D
Version: future
Platform: x86
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2010-06-10 04:46:47 PDT ---
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.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list