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

Home » Public Forums » archive » Re: saving variables between calls to a procedure?
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: saving variables between calls to a procedure? [message #31609 is a reply to message #31608] Wed, 31 July 2002 15:14 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"Reimar Bauer" <R.Bauer(no spam)@fz-juelich.de> wrote in message
news:ai9ck5$41hp$1@zam602.zam.kfa-juelich.de...

> Shawn wrote:
>
>> ...It actually just occured to me that I might declare a common
>> block which is actually not shared with any other procedure, then I
>> would be able to avoid mistakenly using the variable in that
>> procedure in a way that I did not intend to use it. Is it possible
>> to do this, declare a common block, but not use it in any other
>> procedure, and will IDL remember the variables if the common block
>> is not used in any other procedure?

Yes. Make sure you give it a name that won't clash with anything else,
eg "my_procedure_common"

> I don't like common blocks too. Most times I am using parameters as
> variable or structure or pointer. It depends on what's the routine
> should do.

I don't "like" common blocks either but what on earth is wrong with
using one here?

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Image scrolling, displaying axes from outside the visible window
Next Topic: fft application?

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

Current Time: Wed Oct 08 19:56:02 PDT 2025

Total time taken to generate the page: 0.00488 seconds