From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,10ed08559aef1b44 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-01 07:06:29 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsengine.sol.net!wn1feed!worldnet.att.net!135.173.83.71!wnfilter1!worldnet-localpost!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail Message-ID: <3C7F98E6.2070209@worldnet.att.net> From: Jim Rogers User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: STATIC types in ADA? References: <3c7f8fd6$0$7055$43695faf@reader> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 01 Mar 2002 15:06:28 GMT NNTP-Posting-Host: 12.86.32.213 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1014995188 12.86.32.213 (Fri, 01 Mar 2002 15:06:28 GMT) NNTP-Posting-Date: Fri, 01 Mar 2002 15:06:28 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:20645 Date: 2002-03-01T15:06:28+00:00 List-Id: 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. >