[Issue 8919] New: & for BigInt

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 31 03:59:02 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8919

           Summary: & for BigInt
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2012-10-31 03:58:57 PDT ---
import std.bigint;
void main() {
    BigInt x = 10;
    BigInt y = 20;
    auto z = x & y;
    auto w = x & -y;
}


DMD 2.061alpha gives:

test.d(5): Error: 'x' is not of integral type, it is a BigInt
test.d(5): Error: 'y' is not of integral type, it is a BigInt
test.d(6): Error: 'x' is not of integral type, it is a BigInt
test.d(6): Error: 'y.opUnary()' is not of integral type, it is a BigInt

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


More information about the Digitalmars-d-bugs mailing list