Why version() ?

Don nospam at nospam.com
Tue Feb 10 04:08:03 PST 2009


Trass3r wrote:
> grauzone schrieb:
>> Some severe disadvantages of version():
>> 1. They can't contain expressions (like "version(linux && mac)").
> 
> version(linux)
>     version(mac)
>     {
>     }
> 
> But yeah, that's a feature that could be added.

A&&B is not so terrible, since you can do it by nesting, as above.
The big problem is A || B. It creates a mess.



More information about the Digitalmars-d mailing list