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:
Dennis Handly <[log in to unmask]>
Reply To:
Dennis Handly <[log in to unmask]>
Date:
Mon, 29 Apr 2002 15:32:21 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (16 lines)
>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).

Yes.

>However if the main program calls another subprogram that calls this
>routine, the variable comes to life only when needed
>Michael Abootorab

No, if it is defined in a SUBPROGRAM its lifetime is the same as with
main.  Both have static storage duration.

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

ATOM RSS1 RSS2