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,f4c347649cc4d329 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.stack.nl!feeds.news.ox.ac.uk!news.ox.ac.uk!feed2.jnfs.ja.net!jnfs.ja.net!sanger.ac.uk!news-out.octanews.net!mauve.octanews.net!news-out.readnews.com!postnews3.readnews.com!not-for-mail Date: Sat, 09 Feb 2008 18:41:42 -0500 From: "Peter C. Chapin" User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Another question about controlled types. References: <47ae13b2$0$32493$4d3efbfe@news.sover.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <47ae3a34$0$32511$4d3efbfe@news.sover.net> Organization: SoVerNet (sover.net) NNTP-Posting-Host: e5b8bca5.news.sover.net X-Trace: DXC=KF;NA]H=LOK7O;dA9kFn`JK6_LM2JZB_C\M@V[W]Q2XJ3?@`i3kGa5KMQAFha53X^FYPK@mOB96iD X-Complaints-To: abuse@sover.net Xref: g2news1.google.com comp.lang.ada:19753 Date: 2008-02-09T18:41:42-05:00 List-Id: Jeffrey R. Carter wrote: > Here the full view is limited. That is the difference. Ah! > To return a limited value, you now need to either return an aggregate or > use the extended return statement: > > return Some_Type'(Ada.Finalization.Limited_Controlled with Component => I); > > or > > return Result : Some_Type do > Result.Component := I; > end return; Cool! I actually understand that. :-) Thanks a lot. Peter