On Jan 25, 2012, at 1:44 PM, Vladimir Panteleev wrote:

> On Wednesday, 25 January 2012 at 19:58:40 UTC, Jesse Phillips wrote:
>> I don't think it makes sense in Druntime. It isn't required for the compiler 
>> to work that I know of.
> 
> Underlying implementation of language features trickles down to using either 
> the DMC runtime or Windows APIs. Druntime defines the Windows APIs locally 
> where needed, which is a hack.
> 
> Example:
> 
> https://github.com/D-Programming-Language/druntime/blob/master/src/rt/dmain2.d#L31

This was done to reduce coupling between modules and to reduce the runtime 
footprint in executables.  It's not terribly maintenance-friendly however, and 
so Druntime is slowly transition to simply importing the appropriate module.  A 
number of these remain mostly because it ain't broke as-is.

Reply via email to