[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: User selectable lower array bound?



Craig Markwardt <craigmnet@cow.physics.wisc.edu> writes:



>Paul van Delst <paul.vandelst@noaa.gov> writes:

>> Hey there,
>> 
>> Is is just me, or would anyone else find useful the ability to define arrays in IDL such
>> that the lower bound is *not* always zero? Sorta like:
>> 
>>   x = FINDGEN( 11, LOWER = -5 )
>> or
>>   y = DBLARR( 100, LOWER = 1 )
>> 
>> so that accessing elements such as x[ -4 ] or y[ 100 ] are o.k.?

>Well, as grumpy as I have been in the past about IDL wishes, this is
>one thing I do not want to have in IDL now!


I'm glad I'm not the only one!  When I first saw this proposal, I thought to
myself that I could hear the tinkly sound of code breaking all over the place.
:^)


William Thompson