Checking Compiler version in code?

Dicebot public at dicebot.lv
Thu Dec 5 10:44:57 PST 2013


On Thursday, 5 December 2013 at 18:40:53 UTC, Jeremy DeHaan wrote:
> Hey all,
>
> I was wondering if there was a way to check the compiler 
> version when running code. My project uses 2.064 and other 
> people that go to use it will get errors if they haven't 
> upgraded yet, and I'd like to make a check before hand so that 
> if need be I can have a "Please upgrade to the most recent 
> compiler" message show up or something.
>
> Thanks!

http://dlang.org/phobos/std_compiler.html


More information about the Digitalmars-d-learn mailing list