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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Containers, dangling references Date: Tue, 10 Mar 2020 15:28:18 -0500 Organization: JSA Research & Innovation Message-ID: References: Injection-Date: Tue, 10 Mar 2020 20:28:34 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="14672"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader01.eternal-september.org comp.lang.ada:58191 Date: 2020-03-10T15:28:18-05:00 List-Id: "Simon Wright" wrote in message news:ly5zfcaxsy.fsf@pushface.org... > "Randy Brukardt" writes: ... >> The language rules are designed to allow returning part of an aliased >> parameter as the return from a function. But one could also return a >> part of the designated object of a library-level access type. > > Is there any difference between an ordinary return & an extended return? > Looking at AARM 6.5(5.8/3), I think not? Should not matter. We want it to be easily possible to replace one with the other, since it often happens that one needs to do more (or less) during a return when maintaining a function. Randy.