comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Performance of records with variant parts
Date: Thu, 1 Apr 2021 16:38:46 +0300	[thread overview]
Message-ID: <icm0n6F6b3pU1@mid.individual.net> (raw)
In-Reply-To: <9233bc10-091c-46af-b613-504bcb5e1c82n@googlegroups.com>


On 2021-04-01 3:03, John Perry wrote:

> A function returns an Intersection_Type, which has several fields,
> one of which was a Thing_Type. So if Thing_Type is variant,
> Intersection_Type also has to be variant.

No.

I assume by "X is variant" you mean that X has a variant_part (RM 3.8.1(2)).

If the discriminant of Thing_Type has a default value, Intersection_Type 
can have a Thing_Type component without supplying it with a discriminant 
value, and Intersection_Type need not have discriminants nor a variant part.

  parent reply	other threads:[~2021-04-01 13:38 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-22 17:02 Performance of records with variant parts John Perry
2021-03-22 17:32 ` Jeffrey R. Carter
2021-03-22 17:49   ` John Perry
2021-03-22 17:54     ` John Perry
2021-03-22 19:31     ` Jeffrey R. Carter
2021-03-22 22:11       ` John Perry
2021-03-23  9:31         ` Jeffrey R. Carter
2021-03-23 14:27           ` Simon Wright
2021-03-23 23:00           ` John Perry
2021-03-23 23:27             ` Jeffrey R. Carter
2021-03-26 15:38               ` Stephen Leake
2021-03-26 15:44                 ` John Perry
2021-03-30  7:12                   ` Emmanuel Briot
2021-04-01  0:03                     ` John Perry
2021-04-01  6:45                       ` Emmanuel Briot
2021-04-01 13:38                       ` Niklas Holsti [this message]
2021-04-02 16:07                         ` John Perry
2021-03-22 17:39 ` Dmitry A. Kazakov
2021-03-22 17:45   ` John Perry
2021-03-22 18:07     ` Dmitry A. Kazakov
2021-03-22 18:23       ` John Perry
2021-03-22 20:30         ` Dmitry A. Kazakov
2021-03-22 18:59 ` Niklas Holsti
2021-03-22 21:54   ` John Perry
replies disabled

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