| Re: Yet again, The Sky is Falling! [message #52964 is a reply to message #52872] |
Fri, 09 March 2007 11:52   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Paul van Delst writes:
>> 2. Don't pass the same named variable as both an input and output
>> parameter in a routine call. (Or as two output parameters!)
>
> Good lord. Why would anyone do *that*? (In any language) :o)
Well, because it seems "natural", for one thing. Consider
the POSITION keyword to TVIMAGE when you don't know for
sure if the user wants to preserve the aspect ratio of the
image or not, but you are keenly interested in knowing
where the image ended up.
That's, uh, about the only example I can thing of at the
moment, but it seems a good one. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
|