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

Home » Public Forums » archive » Re: pointer question
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: pointer question [message #24353 is a reply to message #24276] Mon, 26 March 2001 17:06 Go to previous message
egraves is currently offline  egraves
Messages: 9
Registered: January 2000
Junior Member
Thanks to all who chimed in on my pointer question. The
background of me posing this dilemma was that i was under the
assumption that IDL passed variables by value. Since i am
dealing with a number of rather large data structures, i thought
it would be wise to pass pointers to these structures in
function calls instead of passing the structures themselves. And
naturally after coding for a while, i found situations where i
wanted to execute a function using a hybrid of several data
structures, and instead of creating one explicitly, i hastily
concocted one, used it to define a pointer with PTR_NEW, and
directly passed the result of this to my function.

I have gone back and corrected this naughty practice. Thanks
everyone!




Ted Graves
Magnetic Resonance Science Center, UCSF
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: widget fonts
Next Topic: *.cdf files

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

Current Time: Sat Oct 11 14:30:35 PDT 2025

Total time taken to generate the page: 1.04026 seconds