core.stdc.config

Craig Dillabaugh cdillaba at cg.scs.carleton.ca
Thu Jan 30 06:10:37 PST 2014


On Thursday, 30 January 2014 at 09:03:47 UTC, Gary Willoughby 
wrote:
> On Thursday, 30 January 2014 at 03:28:57 UTC, Craig Dillabaugh 
> wrote:
>> So, there is a module core.stdc.config (referenced here):
>>
>> http://dlang.org/interfaceToC.html
>>
>> That is presumably part of the D Standard library.  I am 
>> curious to know why no mention of this library is included at:
>>
>> http://dlang.org/phobos/index.html
>>
>> Is it not part of Phobos? Are there standard modules in D that 
>> are not included in Phobos?  If so, where would one find the 
>> list of these modules.
>
> The way i see what's available is to take a look at the files 
> installed by the compiler. The directory is different for all 
> operating systems but it's great to look at the source code of 
> all the different modules.
>
> For example on Mac OSX 10.8.5 'core.stdc.config' is located at 
> '/usr/share/dmd/src/druntime/src/core/stdc/config.d'. There you 
> can see how the types are constructed and what they represent. 
> For Linux just type 'locate config.d' in the terminal. For 
> Windows it's all in 'C:\d' i think.

I did as you suggested and had a look through what was on my 
system.  Having done so I now think that the documentation at:

http://dlang.org/phobos/index.html

is out of date.

If you look at the section under "Imports", this appears to be 
describing what is available under from C, but it appears to 
suggest that you use std.c.config - or at least that is how I 
would have read it.


More information about the Digitalmars-d-learn mailing list