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

Home » Public Forums » archive » no backwards compatibility in IDL 5.6
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: no backwards compatibility in IDL 5.6 [message #34301 is a reply to message #34266] Fri, 28 February 2003 18:20 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
thompson@orpheus.nascom.nasa.gov (William Thompson) writes:


> Pavel Romashkin <pavel_romashkin@hotmail.com> writes:
>
>> Why is EXECUTE used in this program? Why can't the value just be
>> returned from each CASE? Execute will slow it down and as far as I can
>> tell, does nothing special. There is no code that follows the CASE to
>> prevent you from returning at any point. Will it not compile in 5.4 with
>> the extra keyword? I thought keyword mismatches are runtime errors. Am I
>> missing something?
>> Pavel
>
>
> Yes, without the execute statement, it will not compile in versions earlier
> than 5.4. You get the error message
>
> IDL> .run atan_complex_wrapper
>
> (version GE 5.6): returnValue = ATAN(complexNum, /Phase)
> ^
> % Keyword parameters not allowed in call.
> At: /disk1/thompson/atan_complex_wrapper.pro, Line 12
> % 1 Compilation errors in module ATAN_COMPLEX_WRAPPER.
>
> However, only the last execute statement is actually required. The first two,
> without the new keyword, can be direct statements.

And even, the last EXECUTE is not required, if one uses CALL_FUNCTION
instead, which should be a bit faster, not as clunky looking to me.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: 2 questions about .sav files
Next Topic: Re: writing ascii files (with really long lines...)

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

Current Time: Sat Oct 11 23:06:41 PDT 2025

Total time taken to generate the page: 0.79842 seconds