comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: 'Protected' abstract subprograms
Date: Wed, 15 Jan 2014 16:21:57 -0500
Date: 2014-01-15T16:21:57-05:00	[thread overview]
Message-ID: <wcc38kpgcui.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: ea1e456e-0851-4df3-b06d-524dae3d0459@googlegroups.com

adambeneschan@gmail.com writes:

> Or it could just mean that Ada didn't provide a complete enough way
> for generics to put conditions on the actual parameters.You can say
> "type T is private;", in which case the actual must be nonlimited; or
> you can say "type T is limited private;", in which case the actual may
> be limited or nonlimited.  But you don't have a way to say "the actual
> must be limited", which is what would be needed here.

Yes, that approach could work, but there are dozens of these "generic
private part" rules in the RM, and I suspect they all break privacy.

>...(And similarly
> for "tagged"; generics don't have a way to say "the actual must be
> untagged", and it seems that I submitted an AI in the last year or two
> about a case where using a tagged type as an actual for a generic
> formal private type led to a language hole involving derived types.)

- Bob

  reply	other threads:[~2014-01-15 21:21 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-10 22:00 'Protected' abstract subprograms sbelmont700
2014-01-10 22:30 ` Randy Brukardt
2014-01-11 16:12   ` sbelmont700
2014-01-14  3:45     ` Randy Brukardt
2014-01-14  9:05       ` Dmitry A. Kazakov
2014-01-15  0:36         ` Randy Brukardt
2014-01-15  9:17           ` Dmitry A. Kazakov
2014-01-15 14:11             ` Robert A Duff
2014-01-15 15:40               ` adambeneschan
2014-01-15 21:21                 ` Robert A Duff [this message]
2014-01-15 23:10                   ` Randy Brukardt
2014-01-16  0:51                     ` Robert A Duff
2014-01-16 10:43                       ` AdaMagica
2014-01-16 16:32                         ` adambeneschan
2014-01-17  1:49                         ` Robert A Duff
2014-01-17 23:23                           ` Randy Brukardt
2014-01-19 21:07                             ` Robert A Duff
2014-01-20  8:40                               ` Dmitry A. Kazakov
2014-01-21 14:37                                 ` Robert A Duff
2014-01-22  8:27                                   ` Dmitry A. Kazakov
2014-01-21  1:21                               ` Randy Brukardt
2014-01-21 14:35                                 ` Robert A Duff
2014-01-15 23:17               ` Randy Brukardt
2014-01-16  8:52               ` Dmitry A. Kazakov
2014-01-11  8:41 ` J-P. Rosen
2014-01-11  8:59 ` Dmitry A. Kazakov
2014-01-11 13:42   ` Niklas Holsti
2014-01-11 19:35     ` Dmitry A. Kazakov
2014-01-12  9:19       ` Niklas Holsti
2014-01-12 10:22         ` Dmitry A. Kazakov
replies disabled

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