version and debug statements

Anders F Björklund afb at algonet.se
Thu May 11 00:12:48 PDT 2006


Daniel Keep wrote:

> Well, I'll continue to hope that at some point it grows boolean
> expressions in version statements like "version(BSD | Linux)", but I can
> live without those :)

Yeah, those can be hacked too.

version (freebsd)
    version = freebsd_or_linux;
version (linux)
    version = freebsd_or_linux;

version (freebsd_or_linux) { ... }

--anders

PS. All platforms except Windows (and "Unix") use lowercase...
     http://www.prowiki.org/wiki4d/wiki.cgi?DocComments/Version



More information about the Digitalmars-d mailing list