www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9432] New: Some missing bitwise BigInt operators

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



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: -------
Jan 31 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9432


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE



*** This issue has been marked as a duplicate of issue 9061 ***

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