comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@bix.com (Tom Moran)
Subject: Re: Are global or persistent variables in ADA?
Date: 1998/04/25
Date: 1998-04-25T00:00:00+00:00	[thread overview]
Message-ID: <35418302.55206221@SantaClara01.news.InterNex.Net> (raw)
In-Reply-To: 35413389.46570978@news.gatech.edu


>procedure retain it's variable value after it returns to it's calling
>routine? In C  I can use STATIC in declaring such a variable.
Yes.  Put the variable in the body of the package containing the
procedure. One assumes you aren't doing any multi-tasking.

>As an alternative is it possible to have a global variable available
> to all the modules and by this I mean available to outside packages.
This is hardly an "alternative" since it is very different.  Put the
variable in the public part of the specification part of the package
and it will be available to any other package that 'with's this one.





  reply	other threads:[~1998-04-25  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-25  0:00 Are global or persistent variables in ADA? Brian Franklin
1998-04-25  0:00 ` Tom Moran [this message]
1998-04-25  0:00 ` Brian Franklin
1998-04-25  0:00 ` Steve Doiel
1998-05-01  0:00   ` Matthew Heaney
1998-04-29  0:00 ` Alan E & Carmel J Brain
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox