From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,45abc3b718b20aa3 X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Two ideas for the next Ada standard Date: 1996/09/02 Message-ID: #1/1 X-Deja-AN: 178056806 references: <5009h5$ir4@netline-fddi.jpl.nasa.gov> <503sbo$j45@goanna.cs.rmit.edu.au> <507akg$t9u@krusty.irvine.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-09-02T00:00:00+00:00 List-Id: Laurent said, answering Bob Duff: "Bob> [...] Private parts are primarily an efficiency hack. [...] I agree that this is true for Ada 83, but in Ada 95 a child unit gains visibility (in their private part and body) to the declarations in the private part of their parent, and this is an important semantic feature, no longer only an efficiency hack." Laurent, I think you are confused. The "hack" that Bob is referring to is the fact that the private part is part of the spec, or more precisely that the clients of the package have a dependency on the private part (since as I pointed out previously, it is perfectly fine to put the private part in the same file as the body). Obviously a child package with visibility to the private part MUST have a dependency on the private part, so that is not an issue. Really there are two slightly annoying things here 1. The fact that clients have a dependence on the private part 2. The fact that private parts do not have a separate with list