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

Home » Public Forums » archive » Re: Naive 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: Naive pointer question ? [message #28943 is a reply to message #28942] Tue, 22 January 2002 14:14 Go to previous message
Paul van Delst is currently offline  Paul van Delst
Messages: 364
Registered: March 1997
Senior Member
trouble wrote:
>
> From my understanding, pointers are useful in C where you have the
> option of passing by value or by reference, but in IDL it seems one
> *always* passes by reference (insofar as any variable passed to a
> function and then changed within that function is also changed in the
> calling function).
>
> So I was wondering, what is the benefit of explicitly using pointers
> in IDL ?

Let's you easily create complex data structures at the very least (which may or may not be a
Good Thing). E.g. imagine a data array where each "element" was another array, and each one was
a different size. One probably could gin together a regular ol' structure containing
(non-pointer) arrays I'm sure, but the code would probably look like chook scratchings through
your dog's dinner.

paulv

--
Paul van Delst Religious and cultural
CIMSS @ NOAA/NCEP purity is a fundamentalist
Ph: (301)763-8000 x7274 fantasy
Fax:(301)763-8545 V.S.Naipaul
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: runtime-license
Next Topic: bug in curvefit?

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

Current Time: Wed Oct 08 18:25:45 PDT 2025

Total time taken to generate the page: 0.00181 seconds