version and debug statements
Sean Kelly
sean at f4.ca
Thu May 11 10:35:17 PDT 2006
Anders F Björklund wrote:
> 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.
For what it's worth, I chose "Posix" because it refers to the API rather
than to a subset of systems that support that API. But I agree that
both are sufficiently general that they could be considered equivalent.
> 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 ?
I think technically, the "Unix" moniker refers to the two derivatives of
the code originally developed at Bell Labs: BSD Unix, and AT&T Unix.
The other versions are Posix compliant, but not actually "Unix."
Sean
More information about the Digitalmars-d
mailing list