On Wednesday, December 31, 2014 7:03:34 AM UTC-5, Andreas Lobinger wrote:

> What is the recommended way to get a julia major/minor version number (i 
> need to check <> v.0.4)? Just parse Base.VERSION?
>

You normally don't need to get the major/minor explicitly, because 
comparison operations are defined for the VersionNumber type.  Just do

VERSION < v"0.4-"

to check for versions before 0.4 or any prerelease thereof (the trailing 
-).  Although for specific prerelease features you should check for a more 
specific version stamp (see e.g. the examples in Compat.jl)

Reply via email to