comp.lang.ada
 help / color / mirror / Atom feed
* assignment aggregates in controlled types
@ 2020-02-23  1:23 sbelmont700
  2020-02-23 11:07 ` Jeffrey R. Carter
  2020-02-24 23:13 ` Randy Brukardt
  0 siblings, 2 replies; 3+ messages in thread
From: sbelmont700 @ 2020-02-23  1:23 UTC (permalink / raw)


hi,

Does anyone know what, if anything, the language say about the use of assignment aggregates during adjust/finalize procedures?  If you do something like this:

procedure Finalize (Object : in out T) is
begin
  Object := (x => 0);
end;

does not that create a temporary object on the RHS that is assigned (and adjusted) into the LHS, and then the RHS itself finalized by calling Finalize, and then it's finalization procedures all the way down?  For types that are not required to build-in-place, it's unspecified whether it is (right?), so presumably that's a valid behavior?  Is such behavior prohibited, expected, undefined, implementation-defined, or even mentioned in the LRM at all?

-sb

PS - no amount of spamming by the crazies will make this newsgroup any less valuable, please don't let it discourage anyone from participating.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-24 23:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-23  1:23 assignment aggregates in controlled types sbelmont700
2020-02-23 11:07 ` Jeffrey R. Carter
2020-02-24 23:13 ` Randy Brukardt

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