[Issue 13607] New: BigInt math not usable in @safe code
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Oct 12 19:59:11 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13607
Issue ID: 13607
Summary: BigInt math not usable in @safe code
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: Phobos
Assignee: nobody at puremagic.com
Reporter: braddr at puremagic.com
module bitintsafe;
import std.bigint;
void main() @safe
{
BigInt i, j, k;
i = j + k;
}
$ dmd -c bigintsafe.d
bigintsafe.d(8): Error: safe function 'D main' cannot call system function
'std.bigint.BigInt.opBinary!("+", BigInt).opBinary'
I started looking into this but the rabit hole is fairly deep. Filing a bug in
hopes that someone will take up the charge on this one while I work on others.
I don't consider this an enhancement request since @safe and phobos really need
to be in the 'just works' state.
--
More information about the Digitalmars-d-bugs
mailing list