[dmd-beta] dmd 2.063.2 beta

Walter Bright walter at digitalmars.com
Tue Jun 11 13:31:27 PDT 2013


On 6/11/2013 5:34 AM, Andrej Mitrovic wrote:
>
> __VERSION__ seems to be problematic:
> http://d.puremagic.com/issues/show_bug.cgi?id=10330
>
> 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.
>

I think a good fix will be to adjust the computation of __VERSION__. I'll put my 
Top Men on it.


More information about the dmd-beta mailing list