digitalmars.D - core.sys/core.stdc vs. std.c?
- David Nadlinger (6/6) Jun 11 2011 core.stdc is the place for C standard library modules, core.sys.* are
- Jonathan M Davis (10/15) Jun 11 2011 IIRC, all of the standard C bindings are supposed to be in core. std.c i...
- Daniel Gibson (8/15) Jun 11 2011 And why is core.stdc not listed on
- KennyTM~ (2/17) Jun 12 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5872
- Andrei Alexandrescu (3/9) Jun 12 2011 The reason is a smart GSoC student didn't yet come and deprecate them :o...
- David Nadlinger (7/16) Jun 12 2011 Smart? Can't possibly be me… ;)
- Sean Kelly (12/31) Jun 12 2011 The windows bit was more an issue of that we needed the code somewhere a...
core.stdc is the place for C standard library modules, core.sys.* are where the C operating system header translations reside – this is our current policy, right? If so (I can't actually remember any formal decision or discussion), is there a reason we still have so much code in std.c? David
Jun 11 2011
On 2011-06-11 23:38, David Nadlinger wrote:core.stdc is the place for C standard library modules, core.sys.* are where the C operating system header translations reside =E2=80=93 this is=ourcurrent policy, right? If so (I can't actually remember any formal decision or discussion), is there a reason we still have so much code in std.c?IIRC, all of the standard C bindings are supposed to be in core. std.c is=20 where they used to be, and I believe that the majority of std.c merely=20 publically imports the corresponding modules in core. The modules in std.c= =20 should probably be put on the path to deprecation now. I believe that they= =20 have only been left around for backwards compatability. =2D Jonathan M Davis
Jun 11 2011
Am 12.06.2011 08:38, schrieb David Nadlinger:core.stdc is the place for C standard library modules, core.sys.* are where the C operating system header translations reside – this is our current policy, right? If so (I can't actually remember any formal decision or discussion), is there a reason we still have so much code in std.c? DavidAnd why is core.stdc not listed on http://www.digitalmars.com/d/2.0/phobos/phobos.html and http://d-programming-language.org/phobos/index.html ? Furthermore it'd be nice if the functions contained there were documented or at least listed. Cheers, - Daniel
Jun 11 2011
On Jun 12, 11 14:44, Daniel Gibson wrote:Am 12.06.2011 08:38, schrieb David Nadlinger:http://d.puremagic.com/issues/show_bug.cgi?id=5872core.stdc is the place for C standard library modules, core.sys.* are where the C operating system header translations reside – this is our current policy, right? If so (I can't actually remember any formal decision or discussion), is there a reason we still have so much code in std.c? DavidAnd why is core.stdc not listed on http://www.digitalmars.com/d/2.0/phobos/phobos.html and http://d-programming-language.org/phobos/index.html ? Furthermore it'd be nice if the functions contained there were documented or at least listed. Cheers, - Daniel
Jun 12 2011
On 6/12/11 1:38 AM, David Nadlinger wrote:core.stdc is the place for C standard library modules, core.sys.* are where the C operating system header translations reside – this is our current policy, right? If so (I can't actually remember any formal decision or discussion), is there a reason we still have so much code in std.c? DavidThe reason is a smart GSoC student didn't yet come and deprecate them :o). Andrei
Jun 12 2011
On 6/12/11 5:06 PM, Andrei Alexandrescu wrote:On 6/12/11 1:38 AM, David Nadlinger wrote:Smart? Can't possibly be me… ;) On a closer look, I discovered that contrary to core.sys.posix and core.sys.osx, which only have C header translations, core.sys.windows.* also contains support code like backtrace.d, thradaux.d, etc. Is the »official« package structure actually documented anywhere? Davidcore.stdc is the place for C standard library modules, core.sys.* are where the C operating system header translations reside – this is our current policy, right? If so (I can't actually remember any formal decision or discussion), is there a reason we still have so much code in std.c? DavidThe reason is a smart GSoC student didn't yet come and deprecate them :o).
Jun 12 2011
The windows bit was more an issue of that we needed the code somewhere and i= t was windows-specific, so sys.windows seemed a passable choice. The alterna= tive would be core.internal, though I'm trying to avoid the need for that ap= proach. If you have suggestions for how to handle this, please let me know := -) Sent from my iPhone On Jun 12, 2011, at 8:37 AM, David Nadlinger <see klickverbot.at> wrote:On 6/12/11 5:06 PM, Andrei Alexandrescu wrote:s ourOn 6/12/11 1:38 AM, David Nadlinger wrote:core.stdc is the place for C standard library modules, core.sys.* are where the C operating system header translations reside =E2=80=93 this i=current policy, right? If so (I can't actually remember any formal decision or discussion), is there a reason we still have so much code in=.std.c? =20 David=20 The reason is a smart GSoC student didn't yet come and deprecate them :o)==20 Smart? Can't possibly be me=E2=80=A6 ;) =20 On a closer look, I discovered that contrary to core.sys.posix and core.sy=s.osx, which only have C header translations, core.sys.windows.* also contai= ns support code like backtrace.d, thradaux.d, etc.=20 Is the =C2=BBofficial=C2=AB package structure actually documented anywhere=?=20 David
Jun 12 2011