From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a37:7745:: with SMTP id s66mr21485415qkc.18.1618996791702; Wed, 21 Apr 2021 02:19:51 -0700 (PDT) X-Received: by 2002:a25:4883:: with SMTP id v125mr29472533yba.253.1618996791433; Wed, 21 Apr 2021 02:19:51 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 21 Apr 2021 02:19:51 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=94.31.102.170; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 94.31.102.170 References: <962020bb-97fc-42c3-8255-8f9b2bcbe204n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <6c3692a2-4e67-4d4e-8e8d-9807383fc050n@googlegroups.com> Subject: Re: 'address on a subprogram parameter From: AdaMagica Injection-Date: Wed, 21 Apr 2021 09:19:51 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 1731 Xref: reader02.eternal-september.org comp.lang.ada:61880 List-Id: Jeffrey R. Carter schrieb am Dienstag, 20. April 2021 um 19:32:08 UTC+2: > On 4/20/21 5:52 PM, AdaMagica wrote: > > You can force pass by ref by adding access to the parameter. > I hope you meant to say "aliased", not "access". "Access" does not force pass by > reference; it forces pass by copy because access types are always passed by copy. Of course you're right. Sorry for the confusion. The access value is passed by copy, if you then dereference, you get at the actual object. I reall meant alias.