Version Identifiers for Platforms / Architectures not supported by DMD

Alex Rønne Petersen xtzgzorex at gmail.com
Sun Nov 6 04:19:05 PST 2011


On 06-11-2011 13:07, Nick Sabalausky wrote:
> "Walter Bright"<newshound2 at digitalmars.com>  wrote in message
> news:j95116$79g$1 at digitalmars.com...
>> On 11/5/2011 2:07 PM, Jonathan M Davis wrote:
>>> dmd's version identifiers are annoyingly variable (e.g. linux is
>>> camelcased,
>>> whereas Windows is Pascal-cased and OSX is all uppercase).
>>
>> What they do is follow the casing and spelling of the pre-defined macros
>> of the local C compiler.
>
> That makes it easy to remember! (Not!)
>
>

I have to say, following C compilers in macro definitions is more 
error-prone than just defining a more sane, standardized set of version 
identifiers. Not everyone writing D code will be familiar with C.

- Alex


More information about the Digitalmars-d mailing list