[D-runtime] Is core.math public API?

Sean Kelly sean at invisibleduck.org
Wed Oct 3 16:54:05 PDT 2012


On Oct 2, 2012, at 4:59 PM, Jonathan M Davis <jmdavisProg at gmx.com> wrote:

> On Wednesday, October 03, 2012 01:51:36 Alex Rønne Petersen wrote:
>> I think this is perfectly reasonable - we need to eliminate any and
>> all magic support the compiler has for things in Phobos. It must be
>> another library or we have serious language design issues.
> 
> Well, pretty much the whole reason that druntime exists in the first place is 
> so that the language stuff that requires code outside the compiler would be 
> separated from the actual standard library code. So, it does seem like it's 
> going contrary to that goal to make Phobos rely on magic support to do its 
> thing. Certainly, if you can't build the exact same version of Phobos on two D 
> compilers which are both compliant to the spec, then we have a problem.

I think core.math can be labeled as experimental, and should either be sorted out or removed before too terribly long.  Anything not in a ".internal" package should be considered callable by anyone, not just Phobos.  With all the usual druntime caveats of course.


More information about the D-runtime mailing list