Thread overview
[D-runtime] @safe and core.stdc.math
Jul 08, 2012
Don Clugston
July 08, 2012
Hi,

Can we mark core.stdc.math @safe or @trusted? It's kind of a pain at
the moment because std.math.exp() for non-x86 depends on
core.stdc.math.exp() which is not @safe.

Regards,
Alex
_______________________________________________
D-runtime mailing list
D-runtime@puremagic.com
http://lists.puremagic.com/mailman/listinfo/d-runtime

July 08, 2012
On 8 July 2012 00:35, Alex Rønne Petersen <xtzgzorex@gmail.com> wrote:
> Hi,
>
> Can we mark core.stdc.math @safe or @trusted? It's kind of a pain at
> the moment because std.math.exp() for non-x86 depends on
> core.stdc.math.exp() which is not @safe.

Yes, hardly any of it is pure, but almost all is @trusted.
_______________________________________________
D-runtime mailing list
D-runtime@puremagic.com
http://lists.puremagic.com/mailman/listinfo/d-runtime

July 09, 2012
On Sun, Jul 8, 2012 at 9:13 AM, Don Clugston <dclugston@gmail.com> wrote:
> On 8 July 2012 00:35, Alex Rønne Petersen <xtzgzorex@gmail.com> wrote:
>> Hi,
>>
>> Can we mark core.stdc.math @safe or @trusted? It's kind of a pain at
>> the moment because std.math.exp() for non-x86 depends on
>> core.stdc.math.exp() which is not @safe.
>
> Yes, hardly any of it is pure, but almost all is @trusted.

Done: https://github.com/D-Programming-Language/druntime/pull/261

Regards,
Alex
_______________________________________________
D-runtime mailing list
D-runtime@puremagic.com
http://lists.puremagic.com/mailman/listinfo/d-runtime