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

Home » Public Forums » archive » Re: Undefining a variable a pointer points to
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: Undefining a variable a pointer points to [message #39321] Sun, 16 May 2004 23:10 Go to previous message
marc schellens[1] is currently offline  marc schellens[1]
Messages: 183
Registered: January 2000
Senior Member
Benjamin Hornberger wrote:
> Hi all,
>
> is there a way to undefine the variable a pointer points to? E.g., if I
> initialize a pointer by
>
> p = ptr_new(/allocate_heap)
>
> p is a valid pointer, but *p is undefined. If I now do
>
> *p = 10
>
> is there a way to undefine it again afterwards, i.e. get back to the
> status right after the call to ptr_new(/allocate_heap)?
>
> Thanks for your help,
> Benjamin

dummy=temporary(*p) would also work.

HDH,
marc
[Message index]
 
Read Message
Read Message
Previous Topic: allocate heap? yes or no?
Next Topic: virtual mosaic template format in ENVI

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

Current Time: Wed Oct 08 11:27:26 PDT 2025

Total time taken to generate the page: 0.00358 seconds