how to get version identifiers set during compilation?
    timotheecour 
    thelastmammoth at gmail.com
       
    Fri Sep 21 00:24:19 PDT 2012
    
    
  
how to get version identifiers set during compilation?
ideally would be something like:
enum versions=VersionFlags;//returns ["OSX","debug"] for example
one use case is to have arbitrary logic on versions without 
requiring new syntax.
eg:
static if(VersionFlags.canFind("OSX") && 
!VersionFlags.canFind("debug") ){...}
but there are other uses.
related question:
how to get compilation flags that were set?
eg search paths
It doesn't seem currently possible, is there interest in having 
it implemented?
perhaps in std.compiler?
    
    
More information about the Digitalmars-d-learn
mailing list