[Issue 15212] New: BigInt should implement opCast!long and opCast!int
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Fri Oct 16 17:00:41 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15212
          Issue ID: 15212
           Summary: BigInt should implement opCast!long and opCast!int
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: thecybershadow at gmail.com
Currently, to convert a BigInt to a naked long/int, you have to call the
awkward toLong/toInt methods. The type should also provide these conversion
operations via opCast, so they are accessible to std.conv.to.
--
    
    
More information about the Digitalmars-d-bugs
mailing list