version: multiple conditions
bitwise via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jun 14 09:53:19 PDT 2015
On Sun, 14 Jun 2015 09:36:17 -0400, Ola Fosheim Grøstad
<ola.fosheim.grostad+dlang at gmail.com> wrote:
> On Sunday, 14 June 2015 at 13:02:03 UTC, Manfred Nowak wrote:
>> bitwise wrote:
>>
>>> for at least adding "||" so that code can be shared between platforms?
>>
>> Sureley it is a pita to write:
>>
>> version( iOS) version= iOS;
>> else version( Android) version= Android;
>> else version= neither;
>> version( neither) version= neither;
>> else version=iOSorAndroid;
>>
>> version( iOSorAndroid){
>> // ...
>> }
>
> It is, but it is only a 0.0001% source code increase that can be hidden
> in a config file.
It's not just about the code increase though. What if I need AndroidOrWP8,
and I also need Win32OrWin64? This can quickly become a much larger pita.
> I really hope that the next two release will focus on bugfixes,
> transitioning to D and refactoring.
>
> If DMD source code was lean D code, it would attract more developers to
> the compiler. So avoiding changes now would pay off in terms of long
> term evolution.
>
> You cannot both transition to D and focus on changes. Freeze the feature
> set...
True. Maybe I'm underestimating the amount of effort that is going into
this. I admit I don't know much about whats going on with the DDMD stuff.
Bit
More information about the Digitalmars-d
mailing list