Why the Standard Library

Sean Kelly sean at invisibleduck.org
Thu Jan 19 11:18:56 PST 2012


The only thing actually required to build a D app is druntime, which contains threading support (needed so the GC knows how to scan threads spawned by the app), a GC, and compiler support code. When Phobos is built, druntime is bundled into it, so only Phobos is actually linked. 

Sent from my iPhone

On Jan 19, 2012, at 10:52 AM, "Zachary Lund" <admin at computerquip.com> wrote:

> I've been wondering in the back of my mind for awhile now and it really hasn't bothered me much but I figured I might as well get it off my mind.
> 
> Why is there a need for a default "standard" library? I can understand about some of the core stuff, but hell, even threads can be handled via a 3rd party library. Why must Phobos or any library be a part of D itself?
> 
> I'm unfamiliar with the reason for C++ having a standard library as well (which I bring up when people bitch about poor design or something similar which I usually get no viable or any answer at all). More of an ignorant question probably but oh well...


More information about the Digitalmars-d mailing list