[Issue 12887] New: Allow for more than one version specification for the version statement
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Jun 10 07:49:43 PDT 2014
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 at puremagic.com
Reporter: juanjux at 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
}
--
More information about the Digitalmars-d-bugs
mailing list