comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: something like perl's 'require 5.4'
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: something like perl's 'require 5.4' [message #24702 is a reply to message #24701] Mon, 16 April 2001 16:39 Go to previous message
John-David T. Smith is currently offline  John-David T. Smith
Messages: 384
Registered: January 2000
Senior Member
Vapuser wrote:
>
> Hi all.
>
> I'm looking for something that check the version of the current IDL
> session against an input version, like perl's 'require 5.4'
> semantics and I *thought* I saw someone mention using something very
> much like this.
>
> Does anyone know of such a thing or was I just hallucinating?


It's ugly:

v=byte(!VERSION.RELEASE) & v=v[where(v ge 48 and v le 57)]
v=float(string(v[0]))+float('.'+string(v[1:*]))

if v lt 5.4 then message, "IDL v5.4 required"

This is to get around release names like '5.3.2a' or some such. I you
are sure you just want 5.4 you can of course do the much cleaner

if !VERSION.RELEASE eq '5.4' ...

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: OVERLAYING IMAGES
Next Topic: reading file into structure?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Nov 30 16:47:56 PST 2025

Total time taken to generate the page: 0.96500 seconds