← Back to index
|
Original Bugzilla link
Bug 4300 – BigInt * int doesn't work well
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2010-06-10T04:43:00Z
Last change time
2015-06-09T05:13:47Z
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2010-06-10T04:43:23Z
This D2 program asserts with v2.047beta: import std.bigint: BigInt; void main() { BigInt r = 10; r = r * 2; assert(r == BigInt(20)); }
Comment #1
by clugdbug — 2010-06-10T15:13:22Z
Ouch. "Doesn't work well", like building a ship out of spaghetti doesn't work well. Fixed in Phobos svn 1625.