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,e859f774bbb3dfb3 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!feeder1-1.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: another way to shoot yourself in the foot? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <54157920-377a-441b-9b0b-f0c4f9ddffec@f36g2000hsa.googlegroups.com> <54435596-5e7f-4686-a2b7-1e22d7c4b186@p25g2000hsf.googlegroups.com> <483ugmvkl2ea.1hrqsq7ru4t1x$.dlg@40tude.net> Date: Mon, 23 Jun 2008 09:49:26 +0200 Message-ID: <12dhu8e1w5ac9.1s9hzkf9d2rsy$.dlg@40tude.net> NNTP-Posting-Date: 23 Jun 2008 09:49:26 CEST NNTP-Posting-Host: bcc62a38.newsspool4.arcor-online.net X-Trace: DXC=>\30XMBga`VmG86`U=_nC_4IUK\BH3YRNbJ\lX_>gN]DNcfSJ;bb[UFCTGGVUmh?TLK[5LiR>kgRAkAVN>>ba`V X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:811 Date: 2008-06-23T09:49:26+02:00 List-Id: On Sun, 22 Jun 2008 16:44:08 -0400, Robert A Duff wrote: > I don't see that as a problem, and anyway, the same thing can happen > with the existing syntax: > > function Foo (...) return String is > begin > return Result : String (1..200) do -- Going to return 200 characters > Result (1) := 'a'; -- Here the result has to be allocated > if HALT (x) then > goto Label; > end if; > end; -- Drop already allocated and initialized result > <