comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: derived formal types and known discriminants
Date: Fri, 23 Jun 2017 12:26:11 -0500
Date: 2017-06-23T12:26:11-05:00	[thread overview]
Message-ID: <oijivk$m72$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: a9316065-923c-439e-9176-8f3eb469c601@googlegroups.com

<sbelmont700@gmail.com> wrote in message 
news:a9316065-923c-439e-9176-8f3eb469c601@googlegroups.com...
>Can any language lawyer explain the reasoning behind precluding known 
>discriminants
>for general formal derived types?

I don't know, I can only guess. And my guess would be that discriminants 
that are added/removed would be a problem. Within the generic, you could 
declare objects giving those discriminant values, but they might not be 
right. For a type with unknown discriminants, you can't declare an object at 
all, so that's easier.

But why using the same matching rules used for formal private types wouldn't 
work, I don't know. Or maybe it just didn't seem worth worrying about, given 
that formal derived types are mainly useful to give Steve Baird a rare 
mechanism for the amazing semantic issues that he comes up with. (Yes, 
formal tagged derived types have some uses in deep type hierarchies, and 
that's about it, because no one declares other kinds of derived types in the 
first place.)

                                      Randy.


  reply	other threads:[~2017-06-23 17:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-23  0:45 derived formal types and known discriminants sbelmont700
2017-06-23 17:26 ` Randy Brukardt [this message]
2017-06-29 14:15   ` sbelmont700
2017-06-29 14:39     ` Dmitry A. Kazakov
2017-06-29 17:40       ` Robert Eachus
2017-06-30  1:10     ` Randy Brukardt
2017-06-30  7:24       ` Dmitry A. Kazakov
2017-06-30 18:09         ` Randy Brukardt
2017-07-04  0:30           ` sbelmont700
2017-07-04  1:36             ` gautier_niouzes
2017-07-04  2:29             ` Randy Brukardt
2017-07-04  7:09             ` Dmitry A. Kazakov
2017-07-04 17:34               ` Shark8
2017-07-03 17:24 ` Jere
replies disabled

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