Re: C standard libraries

2013-07-10 Thread Timothee Cour
On Tue, Jul 2, 2013 at 5:52 AM, bearophile bearophileh...@lycos.com wrote: Adam D. Ruppe: The older std.c is kept around just for compatibility with the old names before the move, at least as far as I know. Maybe they haven't fully deprecated it though because there's other reasons I don't

Re: C standard libraries

2013-07-09 Thread Gary Willoughby
On Tuesday, 2 July 2013 at 12:52:49 UTC, bearophile wrote: Adam D. Ruppe: The older std.c is kept around just for compatibility with the old names before the move, at least as far as I know. Maybe they haven't fully deprecated it though because there's other reasons I don't know about, since

Re: C standard libraries

2013-07-02 Thread CJS
It is in core.stdc. For example: import core.stdc.stdio; // stdio.h import core.stdc.stdlib;// stdlib.h etc. Thanks! I'm confused why that module isn't mentioned in the library reference page. What's the difference between core.stdc and std.c? The docs do refer to core.stdc, though

Re: C standard libraries

2013-07-02 Thread John Colvin
On Monday, 1 July 2013 at 18:09:32 UTC, Jonathan M Davis wrote: On Monday, July 01, 2013 18:32:30 CJS wrote: Is there some header/module that includes declaration for all C standard libraries? I'm wondering both in general for future reference, and for the specific case of wanting to time

Re: C standard libraries

2013-07-02 Thread Gary Willoughby
Use core.stdc, and forget of std.c. Bye, bearophile What's the reason for that?

Re: C standard libraries

2013-07-02 Thread bearophile
Gary Willoughby: What's the reason for that? Moving the C stuff in core is probably a way to remember D programmers that stuff is not normal stuff you are supposed to use in D programs. A D programmer should use the normal safer and nicer D functions. Core is there for special cases.

Re: C standard libraries

2013-07-02 Thread Adam D. Ruppe
On Tuesday, 2 July 2013 at 06:33:03 UTC, CJS wrote: Thanks! I'm confused why that module isn't mentioned in the library reference page. I don't know. What's the difference between core.stdc and std.c? std.c is what it was called in earlier versions of D, before there was a clear

Re: C standard libraries

2013-07-02 Thread bearophile
Adam D. Ruppe: The older std.c is kept around just for compatibility with the old names before the move, at least as far as I know. Maybe they haven't fully deprecated it though because there's other reasons I don't know about, since it has been many years now since the move. In

C standard libraries

2013-07-01 Thread CJS
Is there some header/module that includes declaration for all C standard libraries? I'm wondering both in general for future reference, and for the specific case of wanting to time a function and not knowing what in D--even after looking through the docs--would do something equivalent

Re: C standard libraries

2013-07-01 Thread Adam D. Ruppe
On Monday, 1 July 2013 at 16:32:32 UTC, CJS wrote: Is there some header/module that includes declaration for all C standard libraries? It is in core.stdc. For example: import core.stdc.stdio; // stdio.h import core.stdc.stdlib;// stdlib.h etc. what in D--even after looking through the docs

Re: C standard libraries

2013-07-01 Thread Jonathan M Davis
On Monday, July 01, 2013 18:32:30 CJS wrote: Is there some header/module that includes declaration for all C standard libraries? I'm wondering both in general for future reference, and for the specific case of wanting to time a function and not knowing what in D--even after looking through