From: Vincent Marciante <vincent.marciante@l3harris.com>
Subject: 'address on a subprogram parameter
Date: Tue, 20 Apr 2021 08:10:29 -0700 (PDT) [thread overview]
Message-ID: <962020bb-97fc-42c3-8255-8f9b2bcbe204n@googlegroups.com> (raw)
I think that I used to know this but currently am not sure:
Assuming the a value is passed by reference, is 'Address of a parameter
always the address of the object that is passed as in:
...
type Big_Record is ...
Object : Big_Record;
procedure Proc (Param : in out Big_Record) is
begin
if Param'Address /= Object'Address then
raise Constraint_Error;
end if;
end;
begin
Proc(Object);
...
Also, does parameter mode (in, in out, out) make any difference?
next reply other threads:[~2021-04-20 15:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-20 15:10 Vincent Marciante [this message]
2021-04-20 15:52 ` 'address on a subprogram parameter 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox