comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Problem with protected type
Date: Tue, 25 Nov 2003 14:09:54 -0600
Date: 2003-11-25T14:09:54-06:00	[thread overview]
Message-ID: <vs7dr9eeq73a1c@corp.supernews.com> (raw)
In-Reply-To: m38ym4xuqq.fsf@insalien.org

"Ludovic Brenta" <ludovic.brenta@insalien.org> wrote in message
news:m38ym4xuqq.fsf@insalien.org...
> > And can I create inheritable protected classes?
>
> No.  This has been proposed as an extension to the language [1] back
> in 2000, but the discussions concluded that there was no demand for
> this feature from paying customers, so therefore no compiler vendors
> were going to implement it.
>
> [1] http://www.ada-auth.org/cgi-bin/cvsweb.cgi/AIs/AI-00250.TXT?rev=HEAD

That's not quite the right conclusion. Besides the importance question,
there are also technical issues related to locking that are quite difficult
to solve usefully. Moreover, having the code for locking an protected object
in several units could be very difficult to understand and analyze. The ARG
decided to look at protected interfaces instead (that is, provide interface
inheritance, but not implementation inheritance.) That's AI-345. I don't
know if these will be adopted (there are several issues that need to be
resolved), but it looks like a more promising approach than that given in
AI-250.

               Randy Brukardt.






  parent reply	other threads:[~2003-11-25 20:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-25 15:15 Problem with protected type Ekkehard Morgenstern
2003-11-25 15:43 ` Ekkehard Morgenstern
2003-11-25 16:06   ` Robert I. Eachus
2003-11-25 18:39     ` Ekkehard Morgenstern
2003-11-26 15:43       ` Robert I. Eachus
2003-11-25 16:45   ` Ludovic Brenta
2003-11-25 18:45     ` Ekkehard Morgenstern
2003-11-25 20:09     ` Randy Brukardt [this message]
2003-11-25 18:03 ` Jeffrey Carter
2003-11-25 18:31   ` Ekkehard Morgenstern
2003-11-26  0:42     ` Jeffrey Carter
replies disabled

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