HP3000-L Archives

April 2002, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
michael a <[log in to unmask]>
Reply To:
michael a <[log in to unmask]>
Date:
Mon, 29 Apr 2002 15:06:13 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (38 lines)
Hi,

if the variable is defined as external in the main
program , it will be allocated every time the program
runs and since EXTERNALS are global then it has to be
defined in all subprograms ( if needed ).


however if the main program calls another subprogram
that calls this routine , the variable comes to life
only when needed , and since it is  static ,its values
are preserved in between calls.


Thanks
Michael Abootorab


--- Dennis Handly <[log in to unmask]> wrote:
> >It's much faster to use a 'subprogram' for a
> variable this large.
> Michael Abootorab
>
> As I said, I believe EXTERNAL also will help for
> main.
> Though since in all cases they are initialized, it
> would take up space
> in a program except for DYNAMIC.


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2