comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: local variables
Date: 1998/04/10
Date: 1998-04-10T00:00:00+00:00	[thread overview]
Message-ID: <dewar.892250404@merv> (raw)
In-Reply-To: 352E491F.4C6D@young.epc.lmms.lmco.com


B. Voh said

<<Does new ADA support a retention of local variables similar to Fortran's
"save" or C's "static" declaration?
In my last encounter with ADA, some years back, I found that to be a
rather crippling ommission and often working against the very principles
(encapsulation) it was supposed to champion.
>>

I am afraid it was your lack of success in learning Ada that was the
source of the crippling rather than the language itself!!! 


All versions of Ada have supported this in a straightforward manner. Merely
encapsulate the subprogram involved in a package, and then put the variable
in question in the package body. Problem solved!





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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-10  0:00 local variables B.Voh
1998-04-10  0:00 ` Robert Dewar [this message]
1998-04-10  0:00 ` Simon Wright
1998-04-10  0:00 ` Niklas Holsti
1998-04-10  0:00 ` Tucker Taft
1998-04-10  0:00   ` Robert Dewar
1998-04-13  0:00     ` Fergus Henderson
replies disabled

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