D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4300 - BigInt * int doesn't work well
Summary: BigInt * int doesn't work well
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-10 04:43 UTC by bearophile_hugs
Modified: 2015-06-09 05:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2010-06-10 04:43:23 UTC
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 Don 2010-06-10 15:13:22 UTC
Ouch.
"Doesn't work well", like building a ship out of spaghetti doesn't work well.

Fixed in Phobos svn 1625.