[D-runtime] intrinsics

Brad Roberts braddr at puremagic.com
Mon Jun 21 23:09:24 PDT 2010


On 6/21/2010 1:32 PM, Sean Kelly wrote:
> 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.

IMHO, druntime should contain everything that the compiler expects to exist.
All of phobos should be optional (and by that I mean std.*).  There's obviously
slightly more in druntime than the absolute minimum the compiler expects, and
that's ok.

My 2 cents,
Brad


More information about the D-runtime mailing list