digitalmars.D.learn - core.stdc.config
- Craig Dillabaugh (8/8) Jan 29 2014 So, there is a module core.stdc.config (referenced here):
- Mike Parker (2/4) Jan 29 2014 All of the core.* modules are part of DRuntime, not Phobos.
- Jacob Carlborg (7/8) Jan 29 2014 Unfortunately none of the core.stdc.* modules are documented. It's
- Craig Dillabaugh (6/13) Jan 30 2014 I agree. Even if they are part of DRuntime, and even if there is
- Gary Willoughby (11/19) Jan 30 2014 The way i see what's available is to take a look at the files
- Craig Dillabaugh (10/33) Jan 30 2014 I did as you suggested and had a look through what was on my
- Gary Willoughby (8/16) Jan 30 2014 The 'std.c.*' modules are just publicly importing 'core.stdc.*'
- =?UTF-8?B?THXDrXM=?= Marques (6/14) Jul 12 2016 I knew there was (or used to be) a module that defines D types of
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.
Jan 29 2014
On 1/30/2014 12:28 PM, Craig Dillabaugh wrote: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.All of the core.* modules are part of DRuntime, not Phobos.
Jan 29 2014
On 2014-01-30 05:42, Mike Parker wrote:All of the core.* modules are part of DRuntime, not Phobos.Unfortunately none of the core.stdc.* modules are documented. It's understandable that duplicating the documentation of the C library is not done since that would require extra work. But it would be nice to at least see which modules and declarations are available. -- /Jacob Carlborg
Jan 29 2014
On Thursday, 30 January 2014 at 07:26:51 UTC, Jacob Carlborg wrote:On 2014-01-30 05:42, Mike Parker wrote:I agree. Even if they are part of DRuntime, and even if there is no desire to write full documentation for them, people looking through the D site's "Library Reference" should at least be made aware of their existence.All of the core.* modules are part of DRuntime, not Phobos.Unfortunately none of the core.stdc.* modules are documented. It's understandable that duplicating the documentation of the C library is not done since that would require extra work. But it would be nice to at least see which modules and declarations are available.
Jan 30 2014
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.
Jan 30 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: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.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.
Jan 30 2014
On Thursday, 30 January 2014 at 14:10:37 UTC, Craig Dillabaugh wrote: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.The 'std.c.*' modules are just publicly importing 'core.stdc.*' modules and AFAIK discouraged as it gives the impression they are part of Phobos. Using 'core.stdc.*' is informing other developers this is core runtime stuff. Forget 'std.c.*', use 'core.stdc.*'. And you are right, the documentation needs a big update!
Jan 30 2014
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.I knew there was (or used to be) a module that defines D types of size equal to the standard C types, but I wasn't finding it, and I thought I was going mad. I guess it's just not documented -- not even listed in the documentation tree!
Jul 12 2016