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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,50137bb64a119cfc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-21 12:09:52 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news-feed.riddles.org.uk!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: "access constant" discriminant Date: Fri, 21 Feb 2003 14:07:23 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <_TO1a.14664$9y2.6601@nwrddc01.gnilink.net> <3CS1a.55972$2H6.1357@sccrnsc04> <3E4E9248.3E71D984@adaworks.com> <1ec946d1.0302201642.66eb93e5@posting.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:34374 Date: 2003-02-21T14:07:23-06:00 List-Id: Matthew Heaney wrote in message <1ec946d1.0302201642.66eb93e5@posting.google.com>... >Here we see the reason why we passed an access parameter: it's because >we're returning an access value that designates one of our own >components. That reason being only that Ada doesn't support 'in out' parameters on functions. If it did, fuction Persistence_View (Object : in out T) return Persistence_Class_Access is begin return Object.Persistence_View'Access; end; would work fine, and would be a lot easier to use as well. But that's not going to happen, so we're stuck with terrible workarounds like 'access' parameters. Randy.