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

Home » Public Forums » archive » Re: Pass by value and performance
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: Pass by value and performance [message #46703 is a reply to message #46700] Wed, 14 December 2005 09:28 Go to previous messageGo to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
Perhaps someone can clarify this for me.

I was doing this

data = {values : FLTARR(...), $
other : other stuff ...}

Then pass "data" to a procedure and do this

result = INTERPOLATE(data.values, x, y, z)

In this case data.values is passed by reference. (p. 92 of Building IDL
Applications)


If I were to use pointers, I could do something like this instead

data = {values : PTR_NEW(FLTARR(...)), $
other : other stuff ...}

Pass "data" to a procedure and do this

result = INTERPOLATE(*data.values, x, y, z)

Is *data.values passed by reference or by value? And how does one tell?


Ken
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: idl job posting
Next Topic: Recursive Function Program in IDL

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

Current Time: Fri Oct 10 00:47:25 PDT 2025

Total time taken to generate the page: 0.56074 seconds