Build v3.03 released

Anders F Björklund afb at algonet.se
Thu Sep 21 05:15:41 PDT 2006


Derek Parnell wrote:

>>Old compiler doesn't like those "static import" statements.
> 
> Sorry. I didn't know that. I haven't used GDC. I guess it will catch up
> soon. 

According to the changelog it was introduced in DMD 0.163,
while GDC 0.19 is currently DMD 0.162 - so it was close :-)

> Is there a special version that GDC sets?

Yes, GDC sets "version(GNU)" and DMD sets "version(DigitalMars)"

This information is available from the "unofficial" page at:
http://www.prowiki.org/wiki4d/wiki.cgi?DocComments/Version

>>PS. Maybe it should be mentioned that std.c.darwin.darwin
>>     is deprecated in favor of std.c.unix.unix for all Unix
> 
> Didn't know that either. 

Both are available, and they include the same thing: (autoconf)

module std.c.darwin.darwin;
import gcc.configunix;

The theory is that all the common stuff goes in std.c.unix.unix
and that the platform specific stuff goes in std.c.${OS}.${OS}

module std.c.unix.unix;

/* This module imports the unix module for the currect
    target system.  Currently, all targets can be
    handled with the autoconf'd version. */

import gcc.configunix;

An exception is std.c.linux.linux which also imports some extra
modules to stay backwards compatible with the module from DMD...

--anders



More information about the Digitalmars-d-announce mailing list