Thread overview
[Issue 4742] New: int % BigInt should work
Aug 28, 2010
David Simcha
Aug 28, 2010
David Simcha
Sep 21, 2010
Don
August 28, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4742

           Summary: int % BigInt should work
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: dsimcha@yahoo.com


--- Comment #0 from David Simcha <dsimcha@yahoo.com> 2010-08-27 17:14:08 PDT ---
import std.bigint;

void main() {
    BigInt i;
    auto foo = 1 % i;
}

test9.d(5): Error: incompatible types for ((1) % (i)): 'int' and 'BigInt'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 28, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4742



--- Comment #1 from David Simcha <dsimcha@yahoo.com> 2010-08-27 17:36:20 PDT ---
Add /, /= to the list, too.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 21, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4742


Don <clugdbug@yahoo.com.au> changed:

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


--- Comment #2 from Don <clugdbug@yahoo.com.au> 2010-09-20 19:02:41 PDT ---
http://www.dsource.org/projects/phobos/changeset/2042

Fixes / and %.

int /= BigInt and int %= BigInt can't be done with the new operator overloading
-- there's no such thing as opopAssignRight().
I have created bug 4903 for that.

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