GNU version 0.18

Anders F Björklund afb at algonet.se
Thu Mar 30 02:26:00 PST 2006


Dave wrote:

> Since you brought it up...
> 
> When are we going to be able to stop crapola like this?
> 
> |version (GNU)
> |  import std.c.unix.unix;
> |else
> |  import std.c.linux.linux;
> 
> <g>

When Walter gets with the program ;-)

DMD doesn't support other platforms.

> Just to throw this out - I actually don't think this will be a big issue right
> now with alot of source code because it's "just" the 'nix op. sys. independent
> stuff, as opposed to renaming something like std.stdio. As I posted before, I'm
> willing to do the legwork (unless I'm severly misunderestimating and run out of
> time) if a decision is made one way or the other, but it has to be resolved.

It has been an issue for quite some time, actually.

The import is just half of the headache, the other
one comes from aliasing in the right module functions...

Assuming that you want "portable" D code, that is.

> I'd really like to know why the GDC folks made this decision in the first
> place[*]. If they wanted to add stuff for things like OS X, AIX, etc. I really
> think they should have lived within the original DMD framework and we'd all be
> better off, even if 'linux' is not really the correct namespace.

DMD is not open to modifications, but GDC was and is ?

Originally there was one namespace for each platform:
linux.linux, darwin.darwin, and so on and so forth...

But David then managed to get most of it autoconfigured
into unix.unix, and only certain things remain specific

--anders



More information about the D.gnu mailing list