www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4301] New: BigInt * const(BigInt) doesn't work well

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs 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: -------
Jun 10 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4301


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pelle.mansson gmail.com


--- Comment #1 from Don <clugdbug yahoo.com.au> 2010-06-17 04:02:50 PDT ---
*** Issue 4340 has been marked as a duplicate of this issue. ***

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


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug yahoo.com.au
         Depends on|                            |8395


--- Comment #2 from Don <clugdbug yahoo.com.au> 2012-07-20 00:07:13 PDT ---
This is blocked by bug 8395.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 20 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4301


Andrei Alexandrescu <andrei erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED


--- Comment #3 from Andrei Alexandrescu <andrei erdani.com> 2013-03-10 19:02:22
PDT ---
Assigning to Don (not sure whether the ID/email is still correct). Don?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 10 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4301


Joseph Rushton Wakeling <joseph.wakeling webdrake.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joseph.wakeling webdrake.ne
                   |                            |t


--- Comment #4 from Joseph Rushton Wakeling <joseph.wakeling webdrake.net>
2013-09-30 10:47:00 PDT ---
See also: http://d.puremagic.com/issues/show_bug.cgi?id=11148

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 30 2013