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

Home » Public Forums » archive » Re: brain twister
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: brain twister [message #22806 is a reply to message #22802] Fri, 08 December 2000 09:59 Go to previous messageGo to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Well, try this. I think it is doing exactly what you expect given that A
is passed by reference, no matter how bizarre it looks.

.comp
pro test1, x, y
x[2] = 10.
print, y
end

a = findgen(10)
print, a
test1, a, a

X and Y are "pointers" to the same array A.
Cheers,
Pavel
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: WNT environmental vars
Next Topic: IDLWAVE 4.6

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

Current Time: Fri Oct 10 17:22:50 PDT 2025

Total time taken to generate the page: 0.63687 seconds