Home »
Public Forums »
archive »
Re: getting data from a pointer
Re: getting data from a pointer [message #12275] |
Wed, 22 July 1998 00:00 |
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
|
|
|
Current Time: Fri Oct 10 15:53:14 PDT 2025
Total time taken to generate the page: 0.79927 seconds