version and debug statements
Anders F Björklund
afb at algonet.se
Thu May 11 10:20:52 PDT 2006
Walter Bright wrote:
>> I'm still naively hoping for both of "version (Unix)"
>
> DMD supports Windows and Linux; Unix is neither. For a compiler which
> targets the Unix operating system, it should set the Unix version.
It does... I was just hoping to be able to use the same code for both ?
GDC has chosen "Unix" as the name for all of them, while Ares uses
"Posix". The naming doesn't matter as much, as long as it is defined.
Which one is better is just splitting hairs, and not so important to me.
For instance, Linux is a kernel - more than it is an operating system ?
But I take it that we need to continue to have at least three codepaths.
> i.e. the former is almost always a bug waiting to happen (when someone
> tries to compile for a third operating system). Versions should be "this
> build is for this configuration" rather than "this build is not for that
> configuration."
Thanks for the clarification on the official position on the matter.
I think it is unfortunate, but there are ways to use what we have...
--anders
More information about the Digitalmars-d
mailing list