From: Jim Rogers <jimmaureenrogers@worldnet.att.net>
Subject: Re: STATIC types in ADA?
Date: Fri, 01 Mar 2002 15:06:28 GMT
Date: 2002-03-01T15:06:28+00:00 [thread overview]
Message-ID: <3C7F98E6.2070209@worldnet.att.net> (raw)
In-Reply-To: 3c7f8fd6$0$7055$43695faf@reader
In Ada you simply declare the variable in the package body,
but outside any subprogram.
Jim Rogers
jhuber@nlxcorp.ellsworth.com wrote:
> Do STATIC data types (like C++ has) exist in ADA?
>
> By this I mean, is there a way I can define a variable so that
> when I call a procedure and set a value (say 5.0) and then
> exit the procedure and come back into it at a later time, the
> variable would still have the same value (i.e., 5.0)?
>
> I think private is the closest thing I've found that will do it.
>
next prev parent reply other threads:[~2002-03-01 15:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-01 14:27 STATIC types in ADA? jhuber
2002-03-01 15:06 ` Jim Rogers [this message]
2002-03-01 15:33 ` Matthew Heaney
2002-03-01 17:51 ` Jeffrey Carter
-- strict thread matches above, loose matches on Subject: below --
2002-03-01 20:42 Gautier Write-only-address
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox