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

Home » Public Forums » archive » scopes
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: scopes [message #86165 is a reply to message #85951] Tue, 15 October 2013 08:23 Go to previous messageGo to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
Variables are passed by reference in IDL. If two output positional parameters reference the same variable name, you are going to have a bad time.

Try this

-----------------------------------
pro test_input_params, a, b
a = 5
b = 4
help, a, b
end

test_input_params, null, null
----------------------------------

It shows that a = a = 4 and that b = a = 4 inside the test program. If I were to later do something with a and b independently, the results would not be independent. I assume that CalDat uses the "month" and "day" parameters when calculating "year", which is why your output is funky.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to speed up KRIG2D by 30x
Next Topic: cgContour and NaN values

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

Current Time: Thu Oct 09 22:25:06 PDT 2025

Total time taken to generate the page: 2.71621 seconds