[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: about memory

davidf@dfanning.com (David Fanning) writes:
> DELVAR can only be used at the IDL main level. Another
> alternative is to use something like my UNDEFINE program,
> which can be used anywhere and has the effect of undefining
> a program variable.
>   http://www.dfanning.com/programs/undefine.pro

I use UNDEFINE all the time.  It's great.  When I'm writing an
exportable program, where I'm not sure that UNDEFINE will be
available, then I use the essence of the algorithm:

a = 0 & dummy = temporary(a)

Then A is undefined and the memory is unallocated.


Craig B. Markwardt, Ph.D.         EMAIL:    craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response