DMD versions

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Fri Feb 18 05:20:07 PST 2011


On Fri, 18 Feb 2011 08:08:46 -0500, Steven Schveighoffer wrote:

> On Fri, 18 Feb 2011 07:56:46 -0500, Matthias Pleh <sufu at alter.com>
> wrote:
> 
> 
>>
>> There is the special Token __VERSION__ which gives an integer.
>>
>> http://www.digitalmars.com/d/2.0/lex.html
>>
>>
> That works ;)  I looked on the "conditional compilation" page.
> 
> -Steve

Also, there's std.compiler, which "decodes" the information in 
__VERSION__.

http://www.digitalmars.com/d/2.0/phobos/std_compiler.html

-Lars


More information about the Digitalmars-d mailing list