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 autolearn=ham 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!postnews.google.com!z24g2000prf.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: another way to shoot yourself in the foot? Date: Tue, 24 Jun 2008 07:59:35 -0700 (PDT) Organization: http://groups.google.com Message-ID: <3bc1018b-b275-4a59-8302-6a3262766f63@z24g2000prf.googlegroups.com> References: <54157920-377a-441b-9b0b-f0c4f9ddffec@f36g2000hsa.googlegroups.com> <54435596-5e7f-4686-a2b7-1e22d7c4b186@p25g2000hsf.googlegroups.com> <483ugmvkl2ea.1hrqsq7ru4t1x$.dlg@40tude.net> <12dhu8e1w5ac9.1s9hzkf9d2rsy$.dlg@40tude.net> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1214319575 28527 127.0.0.1 (24 Jun 2008 14:59:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 24 Jun 2008 14:59:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z24g2000prf.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:836 Date: 2008-06-24T07:59:35-07:00 List-Id: On Jun 23, 12:49 am, "Dmitry A. Kazakov" wrote: > 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 > > <