DMD versions

Steven Schveighoffer schveiguy at yahoo.com
Fri Feb 18 04:51:30 PST 2011


On Fri, 18 Feb 2011 07:36:18 -0500, Russel Winder <russel at russel.org.uk>  
wrote:

> What is the official way of programmatically determining the version
> number of the currently executing dmd?
>
> Thanks.
>

AFAIK, there isn't a way.  You can only determine D2 vs D1.

It would be a good feature to add to druntime though.  Since druntime is  
inextricably linked with dmd, you could define an enum with the minor  
version.

I remember Tango does this.

-Steve


More information about the Digitalmars-d mailing list