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

Home » Public Forums » archive » delvar
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: delvar [message #14327 is a reply to message #14262] Mon, 08 February 1999 00:00 Go to previous message
Dominic Zarro is currently offline  Dominic Zarro
Messages: 7
Registered: July 1998
Junior Member
Actually, my last response was incorrect.
A better way, using pointers is as follows:

;-- to delete a variable var

;-- allocate a pointer

*p=ptr_new(/all)

;-- copy the variable into pointer

*p=temporary(var) ;-- temporary will remove var

;-- free the pointer

ptr_free,p

You can easily package the above into a simple
procedure that deletes any variable var.

Dominic
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 3D projection rotation
Next Topic: device,decomposed=0

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

Current Time: Mon Dec 01 12:41:22 PST 2025

Total time taken to generate the page: 0.80435 seconds