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,c3cec4fb2011babb X-Google-Attributes: gid103376,public From: tmoran@bix.com (Tom Moran) Subject: Re: Are global or persistent variables in ADA? Date: 1998/04/25 Message-ID: <35418302.55206221@SantaClara01.news.InterNex.Net>#1/1 X-Deja-AN: 347521327 References: <35413389.46570978@news.gatech.edu> Organization: InterNex Information Services 1-800-595-3333 Newsgroups: comp.lang.ada Date: 1998-04-25T00:00:00+00:00 List-Id: >procedure retain it's variable value after it returns to it's calling >routine? In C I can use STATIC in declaring such a variable. Yes. Put the variable in the body of the package containing the procedure. One assumes you aren't doing any multi-tasking. >As an alternative is it possible to have a global variable available > to all the modules and by this I mean available to outside packages. This is hardly an "alternative" since it is very different. Put the variable in the public part of the specification part of the package and it will be available to any other package that 'with's this one.