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: dennison@telepath.com Subject: Re: static objects in ADA Date: 1999/04/21 Message-ID: <7fl8rh$l9n$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 469206843 References: X-Http-Proxy: 1.0 x17.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed Apr 21 19:28:00 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1999-04-21T00:00:00+00:00 List-Id: In article , Mark Elson wrote: > Hi, > > I'm a C++ programmer who is new to ADA. I've looked briefly in the Ref > Manual and the FAQ but I can't find the answer to the following question > > 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? Sure. Declare them in the package body that your routine is declared in instead of in the routine itself. Unless you have a really large initialized object, it shouldn't make too much difference in runtime performance though. -- T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own