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

Home » Public Forums » archive » Re: getting data from a pointer
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: getting data from a pointer [message #12275] Wed, 22 July 1998 00:00
menakkis is currently offline  menakkis
Messages: 37
Registered: June 1998
Member
Vap User <vapuser@haifung.jpl.nasa.gov> wrote:
<...> The question is: Is there a similar method to disattach the data
> from a pointer and return it to a 'normal' IDL variable?
..and wondered whether
> A=temporary( *B )
was an efficient (and safe) way to get the pointer value back out of pointer
B and into a regular variable A.

I think that A=temporary(*B) works just as you are hoping. If you do HELP,*B
after the "data move" you'll see it as "undefined" - data indeed gone. (And
"undefined" is a perfectly acceptable "value" for a pointer. Different to a
NULL pointer, of course.)

It would appear that a dereferenced pointer "looks and acts" very much like a
regular variable in all sorts of respects.

I would also like to see more detailed notes from RSI about pointers, though.

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Reading in to array elements from a file.
Next Topic: my god this should be easy!

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

Current Time: Fri Oct 10 15:53:14 PDT 2025

Total time taken to generate the page: 0.79927 seconds