Conditional Compilation Multiple Versions
bitwise via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jun 13 09:01:29 PDT 2015
On Sat, 13 Jun 2015 08:21:50 -0400, ketmar <ketmar at ketmar.no-ip.org> wrote:
> On Fri, 12 Jun 2015 20:41:59 -0400, bitwise wrote:
>
>> Is there a way to compile for multiple conditions?
>>
>> Tried all these:
>>
>> version(One | Two){ }
>> version(One || Two){ }
>> version(One && Two){ }
>> version(One) | version(Two){ }
>> version(One) || version(Two){ }
>> version(One) && version(Two){ }
>>
>> Bit
>
> nope. Walter is against that, so we'll not have it, despite the
> triviality of the patch.
Any idea what the rationale was for not allowing it?
Bit
More information about the Digitalmars-d-learn
mailing list