www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4300] New: BigInt * int doesn't work well

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4300

           Summary: BigInt * int doesn't work well
           Product: D
           Version: future
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2010-06-10 04:43:23 PDT ---
This D2 program asserts with v2.047beta:

import std.bigint: BigInt;
void main() {
    BigInt r = 10;
    r = r * 2;
    assert(r == BigInt(20));
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 10 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4300


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |FIXED


--- Comment #1 from Don <clugdbug yahoo.com.au> 2010-06-10 15:13:22 PDT ---
Ouch.
"Doesn't work well", like building a ship out of spaghetti doesn't work well.

Fixed in Phobos svn 1625.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 10 2010