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

Re: pointer question

John-David Smith <jdsmith@astro.cornell.edu> writes:
> On an only slightly related note, does everyone know that you can recover a
> pointer to a "lost" heap variable using ptr_valid?  Here's an example:
> IDL> a=ptr_valid(4,/CAST)
> IDL> print,*a
>        1

So, is there a way to go the *other* direction?  Which is to say, if
you have a pointer, can you get its index number?  [ not using HELP of
course. ]


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