On Fri, 18 Feb 2011 07:36:18 -0500, Russel Winder <[email protected]> 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

Reply via email to