| Re: Pass-By-Reference question. [message #38490 is a reply to message #38489] |
Wed, 10 March 2004 20:24   |
Mark Hadfield
Messages: 783 Registered: May 1995
|
Senior Member |
|
|
Tim Robishaw wrote:
> Craig Markwardt <craigmnet@REMOVEcow.physics.wisc.edu> wrote
>
>> Mark, are you relying on a documented feature of IDL, or are you just
>> assuming that because it works, it's right? I've never assumed that
>> keyword inheritance works by overriding explicit values. In fact, I
>> would have assumed the exact opposite, namely that the explicit
>> overrides the generic.
>
>
> Craig, the online IDL help document explicitly details this behavior as
> a feature of passing by reference.
>
> IDL> ? _REF_EXTRA
>
>
>>> As to why Tim's example works for XRANGE & YRANGE but not NODATA, I have
>>> no idea. Perhaps you are not really doing what you think you are doing.
>>
>> I agree, the Tim's example is truly strange.
>
>
> Oh, no, the Tim knows what he's doing. ;-> I'm not going to go into
> what brought this up, but as for being strange, I think the example I
> provided is perfectly legit:
I don't think Craig was suggesting that you are trying to do something
strange(*) just that IDL's behaviour, as reported by you, is strange.
Perhaps it's a bug in PLOT?
To rule out the possibility that you have made some basic mistake, can
you please post some self-contained test code that illustrates the problem.
(*)Though if you were doing something strange with IDL, you certainly
wouldn't be the first. Ask David. Ask David's wife.
--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
***
More included text than new. Yada yada yada. More included text than
new. Yada yada yada. More included text than new. Yada yada yada. More
included text than new. Yada yada yada. More included text than new.
Yada yada yada. More included text than new. Yada yada yada. More
included text than new. Yada yada yada. More included text than new.
Yada yada yada. More included text than new. Yada yada yada. More
included text than new. Yada yada yada. More included text than new.
Yada yada yada. More included text than new. Yada yada yada. More
included text than new. Yada yada yada. More included text than new.
Yada yada yada. More included text than new. Yada yada yada. More
included text than new. Yada yada yada. More included text than new.
Yada yada yada. More included text than new. Yada yada yada. More
included text than new. Yada yada yada. More included text than new.
Yada yada yada. More included text than new. Yada yada yada. More
included text than new. Yada yada yada. More included text than new.
Yada yada yada. More included text than new. Yada yada yada. More
included text than new. Yada yada yada. More included text than new.
Yada yada yada. More included text than new. Yada yada yada. More
included text than new. Yada yada yada. More included text than new.
Yada yada yada. More included text than new. Yada yada yada. More
included text than new. Yada yada yada. More included text than new.
Yada yada yada. More included text than new. Yada yada yada.
|
|
|
|