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!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Preventing private procedure visibility being made public through extension Date: Mon, 22 May 2017 16:17:46 -0500 Organization: JSA Research & Innovation Message-ID: References: <4a47e4cd-829c-4451-abf1-82cf60b67706@googlegroups.com> <9cdf04e6-123e-4bd9-b466-77aad00d61bb@googlegroups.com> NNTP-Posting-Host: rrsoftware.com X-Trace: franka.jacob-sparre.dk 1495487866 3066 24.196.82.226 (22 May 2017 21:17:46 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 22 May 2017 21:17:46 +0000 (UTC) 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.6157 Xref: news.eternal-september.org comp.lang.ada:46854 Date: 2017-05-22T16:17:46-05:00 List-Id: "Jere" wrote in message news:9cdf04e6-123e-4bd9-b466-77aad00d61bb@googlegroups.com... ... > Definitely. I am also worried about someone copying the access > value and holding onto it past the lifetime of the object. I try > to avoid Access types when I can. I wish there was someway to > actually pass a limited type as a function return that didn't > involve build in place that can initialize. I just want to be > able to return the limited object out temporarily to access it: That's what generalized references are for. See 4.1.5 in the RM. Randy.