C source in Phobos

James Dunne james.jdunne at gmail.com
Sun Jun 11 18:36:51 PDT 2006


Daniel Keep wrote:
> Hi.
> 
> I've been looking into rebuilding Phobos (mainly to try adding some
> things to the GC), and I noticed a few C files thrown around.
> 
> Is there any reason why these files could not be rewritten in D?  I
> imagine it would simplify rebuilding Phobos... I've already got three C
> compilers on my system; I really don't want to have to add *another*
> just to recompile one library :P
> 
> Being able to do "build phobos" would be awesome :)
> 
> 	-- Daniel
> 
> P.S.  Out of interest, has anyone else looked at adding weak references
> to D's GC?
> 

If you downloaded the DMD package correctly then you *already have* DMC 
on your machine since DMD doesn't run without DMC's support package.

Also, I agree with your post and that Phobos should be a single-language 
library.  Java's standard library is written in Java, .NET's standard 
library is written in (I assume) C# (or at least all managed code), 
C++'s standard library is (again I assume) written in C++.

-- 
Regards,
James Dunne



More information about the Digitalmars-d mailing list