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: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@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: -------