[Issue 10330] Regression (2.063.2): __VERSION__ is set wrong
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 11 05:34:46 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10330
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-06-11 05:34:46 PDT ---
Copied from NG:
Note that some of us have used __VERSION__ to enable compiler-specific
compilation, e.g.:
static assert(__VERSION__ >= 2.063, "This library can only compile
with D 2.063 or newer");
Or:
static if (__VERSION__ < 2.063) { /* implement some compiler/library
workaround here */ }
else { /* use regular code or regular import here */ }
Unfortunately __VERSION__ was never built to be used with these
".point" releases, so maybe we should simply let __VERSION__ always be
2063 for all 2.063 point releases.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list