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

Home » Public Forums » archive » Re: IDL interpreter questions - can someone (D.Fanning) explain - TIA
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: IDL interpreter questions - can someone (D.Fanning) explain - TIA [message #25174 is a reply to message #25075] Fri, 18 May 2001 22:28 Go to previous message
Mark Rivers is currently offline  Mark Rivers
Messages: 49
Registered: February 2000
Member
mankoff@I.HATE.SPAM.lasp.colorado.edu wrote in message ...

> Now its true that I don't know anything about the actual IDL
> implementation (though I have written RPC code for IDL). I actually
> answered based upon the behavior of IDL, not the implementation. That is,
> functions won't modify the callers variables, and neither will procedures,
> unless you add the 'return'.

That's not true. Here's the proof:
pro myproc, a
a=2
end

function myfunc, a
a=3
end

; Test program
a = 1
myproc, a
help, a
a = 0
t = myfunc(a)
help, a
end

.run test
A INT = 2
A INT = 3

So the procedure and the function both modified arguments passed to them.


Mark Rivers
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Checkbox Starting Checked
Next Topic: Re: [Newbie]writing JPEG or GIF file with plot?

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

Current Time: Thu Oct 09 21:25:15 PDT 2025

Total time taken to generate the page: 1.38186 seconds