comp.lang.ada
 help / color / mirror / Atom feed
From: sbelmont700@gmail.com
Subject: assignment aggregates in controlled types
Date: Sat, 22 Feb 2020 17:23:36 -0800 (PST)
Date: 2020-02-22T17:23:36-08:00	[thread overview]
Message-ID: <7c74a973-e278-427c-bbda-f4c1ebf8fdef@googlegroups.com> (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.

             reply	other threads:[~2020-02-23  1:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-23  1:23 sbelmont700 [this message]
2020-02-23 11:07 ` assignment aggregates in controlled types Jeffrey R. Carter
2020-02-24 23:13 ` Randy Brukardt
replies disabled

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