* Private with -- what for? @ 2011-02-16 23:48 Rick 2011-02-17 1:22 ` John B. Matthews 2011-02-17 1:34 ` Adam Beneschan 0 siblings, 2 replies; 3+ messages in thread From: Rick @ 2011-02-16 23:48 UTC (permalink / raw) Hi folks I was just looking at http://en.wikibooks.org/wiki/Ada_Programming/Packages and the concept of "private with ..." There must be some advantage in using it, but I cannot imagine what that could be. Can someone enlighten me? Thanks ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Private with -- what for? 2011-02-16 23:48 Private with -- what for? Rick @ 2011-02-17 1:22 ` John B. Matthews 2011-02-17 1:34 ` Adam Beneschan 1 sibling, 0 replies; 3+ messages in thread From: John B. Matthews @ 2011-02-17 1:22 UTC (permalink / raw) In article <fe7542ee-1ad4-4019-bf4f-c541cefe13a1@a11g2000pro.googlegroups.com>, Rick <rickduley@gmail.com> wrote: > I was just looking at > http://en.wikibooks.org/wiki/Ada_Programming/Packages > and the concept of "private with ..." > > There must be some advantage in using it, but I cannot imagine what > that could be. Can someone enlighten me? "Then there is _private_with_ to make a package only visible inside the private part of the specification." [1] There's an informative discussion in the "Rationale for Ada 2005." [2] [1]<http://en.wikibooks.org/wiki/Ada_Programming/Ada_2005> [2]<http://www.adaic.org/resources/add_content/standards/05rat/html/Rat-1-3-3.html> -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews> ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Private with -- what for? 2011-02-16 23:48 Private with -- what for? Rick 2011-02-17 1:22 ` John B. Matthews @ 2011-02-17 1:34 ` Adam Beneschan 1 sibling, 0 replies; 3+ messages in thread From: Adam Beneschan @ 2011-02-17 1:34 UTC (permalink / raw) On Feb 16, 3:48 pm, Rick <rickdu...@gmail.com> wrote: > Hi folks > > I was just looking at > http://en.wikibooks.org/wiki/Ada_Programming/Packages > and the concept of "private with ..." > > There must be some advantage in using it, but I cannot imagine what > that could be. Can someone enlighten me? It's needed in some cases where you want the private part to have access to a private child package. You might want to check out the discussion at http://www.ada-auth.org/cgi-bin/cvsweb.cgi/ais/ai-00262.txt?rev=1.24 which pointed out some other benefits as well. -- Adam ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-02-17 1:34 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-02-16 23:48 Private with -- what for? Rick 2011-02-17 1:22 ` John B. Matthews 2011-02-17 1:34 ` Adam Beneschan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox