[Issue 4120] New: bigint implicit cast too bool

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 24 15:49:41 PDT 2010


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

           Summary: bigint implicit cast too bool
           Product: D
           Version: future
          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 2010-04-24 15:49:39 PDT ---
I'd like this code to work:


import std.bigint: BigInt;
void main() {
    BigInt b = 1;
    if (b)
        int r = 10;
}

With an opCast(bool).

-- 
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