Re: OR in version conditional compilation

2020-03-20 Thread jxel via Digitalmars-d-learn
On Saturday, 21 March 2020 at 00:12:20 UTC, Jonathan M Davis wrote: On Friday, March 20, 2020 4:33:58 PM MDT jxel via Digitalmars-d-learn wrote: On Friday, 20 March 2020 at 21:03:55 UTC, Jonathan M Davis wrote: > On Wednesday, March 18, 2020 10:23:26 AM MDT IGotD- via > > Digitalmars-d-learn wr

Re: OR in version conditional compilation

2020-03-20 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, March 20, 2020 4:33:58 PM MDT jxel via Digitalmars-d-learn wrote: > On Friday, 20 March 2020 at 21:03:55 UTC, Jonathan M Davis wrote: > > On Wednesday, March 18, 2020 10:23:26 AM MDT IGotD- via > > > > Digitalmars-d-learn wrote: > >> I have not seen any example where version has several

Re: OR in version conditional compilation

2020-03-20 Thread jxel via Digitalmars-d-learn
On Friday, 20 March 2020 at 21:03:55 UTC, Jonathan M Davis wrote: On Wednesday, March 18, 2020 10:23:26 AM MDT IGotD- via Digitalmars-d-learn wrote: I have not seen any example where version has several OR matches. Example idiom: version(X86_64 || X86) { } else version(ARM || Thumb) { }...

Re: OR in version conditional compilation

2020-03-20 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, March 18, 2020 10:23:26 AM MDT IGotD- via Digitalmars-d-learn wrote: > I have not seen any example where version has several OR matches. > > Example idiom: > > version(X86_64 || X86) > { > > } > else version(ARM || Thumb) > { > > }... > > you get the idea. So is this possible at all

Re: OR in version conditional compilation

2020-03-18 Thread Kagamin via Digitalmars-d-learn
https://issues.dlang.org/show_bug.cgi?id=19495#c1

Re: OR in version conditional compilation

2020-03-18 Thread MoonlightSentinel via Digitalmars-d-learn
On Wednesday, 18 March 2020 at 16:23:26 UTC, IGotD- wrote: you get the idea. So is this possible at all or do you have to duplicate the code for each version identifier despite they are equal for many version identifiers? The usual workaround is to define a common version, e.g. version(X86)

Re: OR in version conditional compilation

2020-03-18 Thread Steven Schveighoffer via Digitalmars-d-learn
On 3/18/20 12:23 PM, IGotD- wrote: I have not seen any example where version has several OR matches. Example idiom: version(X86_64 || X86) { } else version(ARM || Thumb) { }... you get the idea. So is this possible at all or do you have to duplicate the code for each version identifier desp

OR in version conditional compilation

2020-03-18 Thread IGotD- via Digitalmars-d-learn
I have not seen any example where version has several OR matches. Example idiom: version(X86_64 || X86) { } else version(ARM || Thumb) { }... you get the idea. So is this possible at all or do you have to duplicate the code for each version identifier despite they are equal for many version