Bug 12887 – Allow for more than one version specification for the version statement

Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-10T14:49:43Z
Last change time
2021-06-10T18:41:20Z
Keywords
spec
Assigned to
No Owner
Creator
Juanjo Alvarez
See also
https://issues.dlang.org/show_bug.cgi?id=7417

Comments

Comment #0 by juanjux — 2014-06-10T14:49:43Z
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 }
Comment #1 by schveiguy — 2014-06-10T15:09:32Z
While I share your desire to have this, it will not be happening. Walter has always steadfastly refused to implement such a feature. So I regretfully have to mark as wontfix. See for example: http://forum.dlang.org/post/[email protected]