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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5af5c381381ac5a7 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: =?iso-8859-15?Q?Yannick_Duch=EAne_=28Hibou57=29?= Newsgroups: comp.lang.ada Subject: Re: Ada requires too much typing! Date: Thu, 10 Jun 2010 20:21:22 +0200 Organization: Ada At Home Message-ID: References: <876j8vF54kU1@mid.individual.net> NNTP-Posting-Host: K7zEbuAt/3320lGJK9pCRA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.53 (Win32) Xref: g2news2.google.com comp.lang.ada:12578 Date: 2010-06-10T20:21:22+02:00 List-Id: Le Tue, 08 Jun 2010 12:10:38 +0200, Niklas Holsti = a =E9crit: > To make a statically allocated variable, you need a library package. = > Perhaps you are thinking of the technique suggested by Mark Lundquist,= = > at http://www.adapower.com/index.php?Command=3DClass&ClassID=3DBasics&= CID=3D204 > > That technique uses a nested package inside a library package, but not= = > within the subprogram using the variable. The nesting is used only to = = > hide the variable from other subprograms that are in the same library = = > package but are not in the nested package. The general technique is a construct where a package (the one holding th= e = variable) is elaborated only once. -- = There is even better than a pragma Assert: a SPARK --# check. --# check C and WhoKnowWhat and YouKnowWho; --# assert Ada; -- i.e. forget about previous premises which leads to conclusion -- and start with new conclusion as premise.