[phobos] Two questions about the use of libc in Phobos
Lars Tandle Kyllingstad
lars at kyllingen.net
Wed Apr 7 02:35:44 PDT 2010
This is mostly out of curiosity, but also relevant for any future
contributions to Phobos:
1. AFAIK, the full interface for the C standard library is in druntime,
specifically the core.stdc package, with OS-dependent stuff in core.sys.
Yet, there still exists an std.c package in Phobos that contains more
or less the same things, and which is used extensively throughout the
rest of the library. Is this intentional, or am I just seeing the
relics of pre-druntime Phobos?
2. Phobos uses functions from the C standard library in favour of native
D implementations in several places. (In light of recent discussions,
std.stdio.File comes quickly to mind.) Is this just a way of getting
things up and running quickly, with the intention of D-ifying things
later, or is it considered a permanent solution?
-Lars
More information about the phobos
mailing list