DMD front end should define a version containing the front end version

Timon Gehr timon.gehr at gmx.ch
Sun Feb 24 09:05:56 PST 2013


On 02/24/2013 06:00 PM, SiegeLord wrote:
> On Sunday, 24 February 2013 at 16:54:20 UTC, Timon Gehr wrote:
>> You realize that you are complaining about this in a feature request? :o)
>
> Using D requires doublethink.
>

For the moment I'm just sticking with 2.060, because I have failed to 
reduce all the forward reference regressions introduced in 2.061.

>>> Maybe this feature is already available and I'm not aware of it?
>>
>> static assert(__VERSION__==2060);
>
> This works, but is it documented? I have been burned (in this most
> recent DMD version no less) by undocumented features being removed.

The documentation is often wrong anyway, but here you go:

http://dlang.org/lex.html

(look for 'Special Tokens')


More information about the Digitalmars-d mailing list