www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12887] New: Allow for more than one version specification for

https://issues.dlang.org/show_bug.cgi?id=12887

          Issue ID: 12887
           Summary: Allow for more than one version specification for the
                    version statement
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: juanjux gmail.com

Currently:

version(IncludeTwo)
{
   version = IncludeOne;
   version = IncludeOther;
}

version(IncludeTwo)
{
... code for any of both versions
}

With a little syntactic sugar this could be:

version(IncludeOne, IncludeOther) // any, 
{
...code for any of both versions
}

--
Jun 10 2014