DMD versions
Russel Winder
russel at russel.org.uk
Fri Feb 18 05:45:03 PST 2011
On Fri, 2011-02-18 at 13:20 +0000, Lars T. Kyllingstad wrote:
> 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
Sadly (perhaps), when I said programmatically, I actually meant from
Python. So gcc has the -v option giving output that can be "parsed" to
find the version number. javac has the -version option, as does
groovyc. OCaml has a -version option. gdc has a -v option. I could go
on. dmd seemingly has no option for delivering a version number. Which
is sad.
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at russel.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110218/954b7e2a/attachment.pgp>
More information about the Digitalmars-d
mailing list