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

Home » Public Forums » archive » COMMON block question
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: common block question [message #75713 is a reply to message #23576] Thu, 14 April 2011 07:20 Go to previous messageGo to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
On Apr 13, 3:15 pm, geoff <oxfordenergyservi...@googlemail.com> wrote:
> I am writing a program which will call a number of subroutines.  I
> have a number of arrays, the largest of which (and will take a
> significant part of the memory) will be used in most (but not all) of
> the subroutines, will be created at the beginning and be retained
> until the end of the program.

I would make this an object with the subroutines as methods.

Ciao,
Paolo

>
> Is it easiest for me to define a common block in the main program with
> this main array and make this block available to the other sub
> routines when necessary?  Is there any overhead in making the block
> available to all sub routines?
>
> I really just want to use a few global variables which are available
> to the whole list of programs
>
> Thanks!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL 8 GUI won't save all overplots on one image...help!!
Next Topic: Cross signs when using postscript font

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

Current Time: Fri Oct 10 04:29:09 PDT 2025

Total time taken to generate the page: 2.95894 seconds