version: multiple conditions

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 16 18:06:42 PDT 2015


"Walter Bright"  wrote in message news:mlorvv$1nb6$1 at digitalmars.com...

> On 6/14/2015 9:53 AM, bitwise wrote:
> > What if I need AndroidOrWP8, and I
> > also need Win32OrWin64? This can quickly become a much larger pita.
>
> If you need those, the design is wrong. It is better to think about what 
> the code is trying to do with Android or WP8, and label *that* a version.

This works well until the code that needs to be versioned is split over many 
source files, and now each one needs to duplicate the version setting code. 



More information about the Digitalmars-d mailing list