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

Home » Public Forums » archive » God save me!
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: God save me! [message #87229 is a reply to message #87226] Fri, 17 January 2014 06:30 Go to previous messageGo to previous message
Yngvar Larsen is currently offline  Yngvar Larsen
Messages: 134
Registered: January 2010
Senior Member
On Thursday, 16 January 2014 23:08:19 UTC+1, Heinz Stege wrote:
> On Thu, 16 Jan 2014 05:58:28 -0800 (PST), ??? wrote:
>
>> Thank a lot, Heinz. Adding compile_opt idl2 works. But I wonder why sometimes the compilation passes even without the option. And later when I remove the line (compile_opt idl2) the compilation also passes.

>
> Zhibo, it is nothing wrong with not using the compile option. However,
> if you allow round brackets for array indexing (i.e. no compile
> option), the IDL compiler or interpreter has to find out if
> "colorbar(...)" is a variable or a function.

You can help the IDL interpreter figuring this out:

http://www.exelisvis.com/docs/FORWARD_FUNCTION.html

That being said, it is highly recommended that you use the idl2 compile option. Personally, I think it also more human readable with [] instead of () for the same reason as for the compiler: array indexing vs function call. And using round brackets for array indexing has been deprecated since IDL 5.0 (March 1997!). I'm not sure why this compile option is not default in 2014, almost two decades later. FUD regarding breaking of old code?

--
Yngvar
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Unable to create X windows Window is iconified and has no backing store...
Next Topic: Object Field Name Conflicts

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

Current Time: Fri Oct 10 04:31:21 PDT 2025

Total time taken to generate the page: 0.55759 seconds