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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,28a3f8dc0fa9d6ac X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: STATIC Variables Date: 1998/07/23 Message-ID: #1/1 X-Deja-AN: 374275425 References: <35B6EC76.ED3B1493@infaut.et.uni-magdeburg.de> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 901221127 23315 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1998-07-23T00:00:00+00:00 List-Id: Marc asks about static variables in Ada. Unlike C, Ada always requires that the lifetime of a variable match the corresponding lifetime of its declaration. Static variables a la C violate this rule of course. Howver, it is absolutely standard practice to get exactly this same effect by simply including the necessary variables at the package body level (i.e. put them in the package body in which your procedure bodyt is declared).