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_20,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a05:620a:21d9:: with SMTP id h25mr14407597qka.70.1619036263137; Wed, 21 Apr 2021 13:17:43 -0700 (PDT) X-Received: by 2002:a25:d6d2:: with SMTP id n201mr17978310ybg.504.1619036263005; Wed, 21 Apr 2021 13:17:43 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!gandalf.srv.welterde.de!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!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 13:17:42 -0700 (PDT) In-Reply-To: <13f272e5-14a3-45cb-abf2-3d9f5a98f715n@googlegroups.com> Injection-Info: google-groups.googlegroups.com; posting-host=146.5.2.231; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 146.5.2.231 References: <962020bb-97fc-42c3-8255-8f9b2bcbe204n@googlegroups.com> <13f272e5-14a3-45cb-abf2-3d9f5a98f715n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <44f2a351-0b1c-4779-b1ac-5509ef51585an@googlegroups.com> Subject: Re: 'address on a subprogram parameter From: Shark8 Injection-Date: Wed, 21 Apr 2021 20:17:43 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:61892 List-Id: On Tuesday, April 20, 2021 at 11:18:24 AM UTC-6, Vincent Marciante wrote: > I actually do not want to test that: I just wrote that as an attempt to > make explicit want I was asking and what I did not expect (exception). > I am really working with old code where I am moving some logic out > from within a package body that contains the "address'd" variable to > an unassociated package that defines the "Big_Record" type and I > wanted to be sure that passing it as a parameter would (always) have > the same behavior with the variable being passed as a parameter. Why not use genreics? Generic Object : in out Big_Record; Procedure Do_Something; Remember, also, that you can supply subprograms in the formal parameters.