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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ea5071f634c2ea8b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.0.170 with SMTP id 10mr10944926pbf.2.1322214912545; Fri, 25 Nov 2011 01:55:12 -0800 (PST) Path: lh20ni16025pbb.0!nntp.google.com!news1.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Generic-Package Elaboration Question / Possible GNAT Bug. Date: Fri, 25 Nov 2011 10:54:50 +0100 Organization: cbb software GmbH Message-ID: <15k841w1sa93x$.9b5nbigxtzll$.dlg@40tude.net> References: <7bf9bc32-850a-40c6-9ae2-5254fe220533@f29g2000yqa.googlegroups.com> <16ipwvpdavifr$.17bxf7if7f6kh$.dlg@40tude.net> <4ecb78b1$0$6643$9b4e6d93@newsspool2.arcor-online.net> <1iofgbqznsviu$.phvidtvxlyj4$.dlg@40tude.net> <4ecbb96e$0$6581$9b4e6d93@newsspool3.arcor-online.net> <4ecbdfdb$0$6629$9b4e6d93@newsspool2.arcor-online.net> <12hfiflyf7pr5$.l3pkpgoid8xt$.dlg@40tude.net> <4ecc35b8$0$7628$9b4e6d93@newsspool1.arcor-online.net> <4eccd5d2$0$6637$9b4e6d93@newsspool2.arcor-online.net> <14p8llstxrtci$.18hb93fkpteuv$.dlg@40tude.net> <4ecd0652$0$6582$9b4e6d93@newsspool3.arcor-online.net> <1wyybnjde2yxq.1w37r5182t0xt.dlg@40tude.net> <4ecd9faf$0$6627$9b4e6d93@newsspool2.arcor-online.net> <1tpgi2c1lci4l.1lvazzk0xb93j.dlg@40tude.net> <4ece2aeb$0$6639$9b4e6d93@newsspool2.arcor-online.net> <4ece5876$0$6569$9b4e6d93@newsspool3.arcor-online.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news1.google.com comp.lang.ada:19152 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2011-11-25T10:54:50+01:00 List-Id: On Thu, 24 Nov 2011 15:45:10 +0100, Georg Bauhaus wrote: > On 24.11.11 13:52, Dmitry A. Kazakov wrote: >> On Thu, 24 Nov 2011 12:30:46 +0100, Georg Bauhaus wrote: >> >>> On 24.11.11 11:52, Dmitry A. Kazakov wrote: >>> >>>>> The typical example is a stack and its contract referring to >>>>> values available at runtime: from the contract, I learn that a stack >>>>> is initially empty and has a certain capacity. >>>> >>>> What is dynamic there? >>> >>> Its initial capacity, as outlined in another post. >> >> You wrote about certain capacity, that is static. > > The certainty of an initial capacity is static, its value > isn't, Therefore that value cannot be contracted upfront. You can only contract a range of values, which is static. >>> One may continue with current_number_of_items and such. >> >> Same here, the contract that Push does not raise if n < N is static. > > Ehr, yes, the contract guides programmers and the check may be > performed at run-time ... Unknown things cannot guide. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de