Since GDL is still in very active development, it can be useful
to execute something contingent on whether or not the GDL version
is recent enough. A fallback block can be used if the version
is too old for the desired feature. As of (at least), gdl-0.9.0, we can use
string(!GDL,/print,format='(a)') to get the version string.
However, alphabetical comparison of versions fails with '~rc' versions
(because '.' lt '~' on at least my system, so '0.9.0' lt '0.9~rc3'), which is wrong.
Also, if a component of the GDL version numbers ever gets
beyond 9, then we would have e.g. '0.9.13' lt '0.9.2' , which again is wrong.
It would presumably be possible to port something highly intelligent
and well-tested, used by GPL packet management systems
(e.g. aptitude?) into GDL, but pending that, i wrote up a quick hack
This is complementary to Laurent's running_gdl routine in the requested
[Version 1.1 of running_gdl should be updated to report details of the
!GDL string, but the changes to make are reasonably easy, and i'll comment
over on that thread.]
Here is a similar 2005 request, which should be linked here, or else
Log in to post a comment.