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

Home » Public Forums » archive » Re: re-initializing program variables
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: re-initializing program variables [message #13871 is a reply to message #13869] Mon, 14 December 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Irene Barg (ibarg@as.arizona.edu) writes:

> How do I re-initialize all program variables with a procedure call?
> Example, I want to do something like:
>
> pro doit_toit, inlist
> openr, ilun, inlist, /GET_LUN
> filename = ''
> while not eof(ilun) do begin
> readf, ilun, filename
> .rnew buildref.pro
> buildref,filename
> endwhile
> free_lun, ilun
> end
>
> Of course, I can't do ".rnew buildref.pro" inside program mode.
> Suggestions?

The Resolve_Routine command is used to compile a procedure
from within another procedure, but for the life of me I
can't figure out *why* you want to do this!? What could
possibly be in the procedure BUILDREF that could be "re-initialized"
by re-compiling that procedure?

Simple minds want to know... :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Progamming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Previous Topic: probability scale on 2D line plot?
Next Topic: Leaking memory when spawning

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

Current Time: Sat Oct 11 04:43:27 PDT 2025

Total time taken to generate the page: 0.15913 seconds