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

Home » Public Forums » archive » Re: Array indexing problem
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: Array indexing problem [message #37863 is a reply to message #37858] Wed, 28 January 2004 14:28 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Michael Wallace wrote:
>
>>> Is there any existing code that will catch the below IDL simple
>>> example? Input a and b must be an array.
>>>
>>>
>>> Input is an array:
>>> IDL> b=[4]
>>> IDL> a=[0,1,2]
>>> IDL> print,a[b]
>>> 2
>>> This should give me an error.
>>
>>
>> Alas, you have run into a little known, but enormously
>> appreciated, little feature of IDL. (I'm sure it is
>> explained in the manuals somewhere. :-)
>
> Could you elaborate on the "enormously appreciated" part of your
> statement? Maybe I'm not thinking in the "IDL Way," but I would not
> have expected the result IDL gives. It may very well be explained in
> the manuals, but why is such a "feature" "enormously appreciated?"

After reading Liam's explanation, I would _still_ like elaboration on why this is
"enormously appreciated"! :o) Seems a bizarre feature to me..... but at least it's
documented.

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
[Message index]
 
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: V5.6 to V6.0 license server question
Next Topic: Rapid "moving windows" access in IDL?

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

Current Time: Wed Dec 03 14:14:16 PST 2025

Total time taken to generate the page: 2.48659 seconds