comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: 'address on a subprogram parameter
Date: Wed, 21 Apr 2021 13:17:42 -0700 (PDT)	[thread overview]
Message-ID: <44f2a351-0b1c-4779-b1ac-5509ef51585an@googlegroups.com> (raw)
In-Reply-To: <13f272e5-14a3-45cb-abf2-3d9f5a98f715n@googlegroups.com>

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.

  parent reply	other threads:[~2021-04-21 20:17 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 [this message]
2021-04-22  9:54       ` Vincent Marciante
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox