[Issue 9432] New: Some missing bitwise BigInt operators

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 31 02:15:11 PST 2013


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

           Summary: Some missing bitwise BigInt operators
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            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 2013-01-31 02:15:10 PST ---
import std.bigint: BigInt;
void main() {
    BigInt a = 100;
    uint b = 200;
    a |= b;
    BigInt c = 200;
    a |= c;
    a = a | c;
}



DMD 2.062alpha:

test.d(5): Error: 'a |= b' is not a scalar, it is a BigInt
test.d(5): Error: incompatible types for ((a) |= (b)): 'BigInt' and 'uint'
test.d(7): Error: 'a |= c' is not a scalar, it is a BigInt
test.d(7): Error: 'a' is not of integral type, it is a BigInt
test.d(7): Error: 'c' is not of integral type, it is a BigInt
test.d(8): Error: 'a' is not of integral type, it is a BigInt
test.d(8): Error: 'c' 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