From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: C to Ada (static)
Date: 1996/04/27
Date: 1996-04-27T00:00:00+00:00 [thread overview]
Message-ID: <dewar.830585469@schonberg> (raw)
In-Reply-To: 31816109.7D55368C@escmail.orl.mmc.com
T.E.D said
"Ada doesn't have anything like static variables. To get the same
functionality, you will have to declare the variable globally
somewhere visible to that routine.
Example:
package body My_Package is
Number : Integer;
procedure My_Procedure is
begin
...series of statements...
end My_Procedure;
end My_Package;"
That could confuse. Number is not a global variable in the normal sense,
it is local to the package body and can be seen only from the package
body.
next prev parent reply other threads:[~1996-04-27 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-26 0:00 C to Ada (static) Heinz-Gerd Kuester
1996-04-26 0:00 ` Joerg Rodemann
1996-04-26 0:00 ` Theodore E. Dennison
1996-04-27 0:00 ` Robert Dewar [this message]
1996-04-26 0:00 ` Laurent Guerby
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox