From: Vincent Marciante <vincent.marciante@l3harris.com>
Subject: Re: 'address on a subprogram parameter
Date: Thu, 22 Apr 2021 02:54:42 -0700 (PDT) [thread overview]
Message-ID: <2e6e9404-b7c3-4c38-a17b-ec18662bca9cn@googlegroups.com> (raw)
In-Reply-To: <44f2a351-0b1c-4779-b1ac-5509ef51585an@googlegroups.com>
On Wednesday, April 21, 2021 at 4:17:43 PM UTC-4, Shark8 wrote:
> 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.
Using a method that ensure that the parameter will be passed by reference
is all that I need. Generics would just add one extra step - the instantiation.
prev parent reply other threads:[~2021-04-22 9:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-20 15:10 'address on a subprogram parameter Vincent Marciante
2021-04-20 15:52 ` AdaMagica
2021-04-20 17:32 ` Jeffrey R. Carter
2021-04-21 9:19 ` AdaMagica
2021-04-20 17:33 ` Niklas Holsti
2021-04-20 16:35 ` J-P. Rosen
2021-04-20 17:18 ` Vincent Marciante
2021-04-20 19:25 ` Randy Brukardt
2021-04-20 19:41 ` Vincent Marciante
2021-04-24 1:25 ` Randy Brukardt
2021-04-24 9:56 ` Niklas Holsti
2021-04-21 20:17 ` Shark8
2021-04-22 9:54 ` Vincent Marciante [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox