[D-runtime] intrinsics

Sean Kelly sean at invisibleduck.org
Mon Jun 21 13:32:40 PDT 2010


On Jun 20, 2010, at 1:47 PM, Brad Roberts wrote:

> Philosophical question:  Should all intrinsics be exposed via druntime?
> 
> My opinion: absolutely.
> 
> The one I ran across just now:
>  std/math.d:@safe pure nothrow long rndtol(real x);    /* intrinsic */

The ones in std.intrinsic (core.bitop) definitely.  For others... I dunno.  Should we really have a core.math module?

This reminds me that I need to submit a patch so the compiler will handle the functions in core.bitop correctly without it having to publicly import std.intrinsic.


More information about the D-runtime mailing list