www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8919] New: & for BigInt

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



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


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