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

Home » Public Forums » archive » Re: Unsupported keyword on older IDL version
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: Unsupported keyword on older IDL version [message #31631] Mon, 29 July 2002 20:30 Go to previous message
Paul Hick is currently offline  Paul Hick
Messages: 9
Registered: November 1999
Junior Member
William Thompson wrote:

> Paul Hick <pphick@ucsd.edu> writes:
>
>
>> This kind of problem must have come up in this group before, but here it
>> is anyways.
>>
>
>> If I call the IDL systime function with the utc keyword:
>> print, systime(/utc)
>>
>
>> on IDL versions older than 5.4 I get the expected 'keyword not
>> supported' error message, since, well, it's not supported, right? The
>> error message pops up when the function containing the systime call is
>> compiled, so testing e.g. !version.release before executing the systime
>> call doesn't work.
>>
>
>> The only solution I have come up with so far is to put the systime call
>> inside a call_function call:
>> print, call_function( 'systime', /utc)
>> This will compile (I will still need to test for !version.release before
>> actually executing the statement of course).
>>
>
>> This to me looks like a somewhat illegitimate use of call_function. Not
>> that I mind bending the rules a bit, but are there any other (better)
>> techniques of dealing with keywords that don't work in all IDL versions.
>>
>
>
> Why do you call this "illegitimate"? To me this seems like just the sort of
> thing that call_function() was designed for. I've always done it this way in
> the past. In fact, I've usually used execute() in the past, but
> call_function() is more elegant.
>
> Bill Thompson
>

My main use for call_function has been as the IDL version of the Fortran
'external' mechanism: passing function names as arguments to
procedures that would then call the function using call_function. That's
a lot more powerful than the current keyword problem. But of course you
are right: whatever works ....

Paul
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: how to input idl figure to MS office
Next Topic: CALL_EXTERNAL

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

Current Time: Wed Oct 08 15:53:00 PDT 2025

Total time taken to generate the page: 0.00399 seconds