Testing whether static foreach is available

Jean-Louis Leroy via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 9 09:30:51 PDT 2017


Is there a way to test whether 'static foreach' is available, 
e.g. via a version symbol?

Also, is it possible to conditionally compile depending on the 
compiler's version, not only the compiler (I mean, not compile a 
block if it's GDC version 5.4.1 or lower)?

I did look at the docs, several times, couldn't find it...



More information about the Digitalmars-d mailing list