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: [email protected]
          Reporter: [email protected]

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.

--

Reply via email to