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

Home » Public Forums » archive » Re: Pointers to a variable...
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: Pointers to a variable... [message #77371] Fri, 26 August 2011 06:50 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
H. Evans writes:

> Unfortunately, I want to preserve them as they are used later in the
> code.
>
> For now, I'll just use
>
> vars = ['a','b','c']
> for i=0,n_elements(vars)-1 do
> print,n_elements(scope_varfetch(vars[i]))

It might be easier to just fetch them:

a = Temporary(*p[0])
b = Temporary(*p[1])
c = Temporary(*p[2])

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Pointers to a variable...
Next Topic: Re: ImageMagick and Landscape Encapsulated PostScript Files

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

Current Time: Wed Oct 08 19:13:59 PDT 2025

Total time taken to generate the page: 0.00392 seconds