comp.lang.ada
 help / color / mirror / Atom feed
From: Nick Roberts <nick.roberts@acm.org>
Subject: Re: access private element of base-class
Date: Sat, 02 Oct 2004 14:56:00 +0100
Date: 2004-10-02T14:56:00+01:00	[thread overview]
Message-ID: <2s7qbbF1hpu2gU1@uni-berlin.de> (raw)
In-Reply-To: <87mzz5s6dk.fsf@insalien.org>

I think the rules can be summarised as follows.

For a public child package:
    - for its specification :
       - the visible part can see the visible part of its parent's spec
       - the private part can see all of the specification of its parent
    - its body can see all of the specification of its parent
    - public and private siblings can see the visible part of its spec
      (if they mention it in a 'with' clause)

For a private child package:
    - for its specification :
       - the visible and private parts can see all of it's parent's spec
    - its body can see all of the specification of its parent
    - only private siblings can see the visible part of its specification
      (if they mention it in a 'with' clause)

Phew, I hope this is right!

-- 
Nick Roberts



  reply	other threads:[~2004-10-02 13:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-01  0:35 access private element of base-class Rick Santa-Cruz
2004-10-01  0:54 ` Jeffrey Carter
2004-10-01  7:45   ` Martin Krischik
2004-10-01 17:54     ` Jeffrey Carter
2004-10-01 17:58       ` Rick Santa-Cruz
2004-10-02  3:21         ` Brian May
2004-10-02 11:32           ` Ludovic Brenta
2004-10-02 13:56             ` Nick Roberts [this message]
2004-10-03 18:51           ` 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