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,cd962bca2451dfbc X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: static objects in ADA Date: 1999/04/25 Message-ID: #1/1 X-Deja-AN: 470770506 References: NNTP-Posting-Date: Sun, 25 Apr 1999 12:29:37 PDT Newsgroups: comp.lang.ada Date: 1999-04-25T00:00:00+00:00 List-Id: Mark Elson writes: > Is there an equivalent declaration (in ADA 95) to the static used in > C++, i.e. so that objects are created at link time rather than at run > time? Declare the objects in a static scope (ie package spec or body), without giving them a default value, and declare the package using pragma Preelaborate. package P is pragma Preelaborate; X : Integer; end P;