comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Protected types and visibility of their internals
Date: Wed, 9 Jul 2008 19:18:00 -0500
Date: 2008-07-09T19:18:00-05:00	[thread overview]
Message-ID: <g53lnt$tja$1@jacob-sparre.dk> (raw)
In-Reply-To: efab0add-0f40-4302-8057-85bee50639d6@34g2000hsf.googlegroups.com

"Adam Beneschan" <adam@irvine.com> wrote in message 
news:efab0add-0f40-4302-8057-85bee50639d6@34g2000hsf.googlegroups.com...
...
> It does seem like there
> ought to be a better way to accomplish all this---how about letting
> private and public parts of a package spec be interspersed?
>
> package P is
> private
>    type Some_Type is ...
> not private  -- heh, heh, heh!
>    protected type PT is
>       procedure Foo;
>    private
>       X : Some_Type;
>    end PT;
> private
>    .. other private stuff can go here if needed
> end P;
>
> But any solution is likely to be a huge burden on both the language
> designers and implementors, at this point.  I think we're stuck.

Tucker has seriously proposed such an idea (see AI05-0074-2), but he's never 
written up the real details so it is impossible to say what pitfalls there 
are in the idea.

                                    Randy.





  parent reply	other threads:[~2008-07-10  0:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-08  9:57 Protected types and visibility of their internals Maciej Sobczak
2008-07-08 12:52 ` Georg Bauhaus
2008-07-08 16:13 ` Robert A Duff
2008-07-09  7:53   ` christoph.grein
2008-07-08 21:03 ` Randy Brukardt
2008-07-10 21:49   ` Maciej Sobczak
2008-07-09  5:04 ` christoph.grein
2008-07-09 13:44   ` Maciej Sobczak
2008-07-09 15:12   ` Adam Beneschan
2008-07-09 22:19 ` Stephen Leake
2008-07-09 22:38   ` Adam Beneschan
2008-07-10  0:18     ` Randy Brukardt
2008-07-10  0:18     ` Randy Brukardt [this message]
2008-07-09 23:22 ` jimmaureenrogers
replies disabled

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