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,b448469faa1741fa X-Google-Attributes: gid103376,public From: gauthier@unilim.fr (Michel Gauthier) Subject: Re: Private Child Unit Date: 1996/12/02 Message-ID: #1/1 X-Deja-AN: 201892693 references: <329DB71E.59E2B600@avions.aerospatiale.fr> organization: Universite de Limoges newsgroups: comp.lang.ada Date: 1996-12-02T00:00:00+00:00 List-Id: In article <329DB71E.59E2B600@avions.aerospatiale.fr>, Paul Chardon wrote: >> Just to understand correctly the need of that concept, can anyone give >> me a significant example of use of a private child unit. 1= Assume a component P, or a hierarchy rooted thereof. Assume the body (or bodies) contains messages intended to be displayed to some user. A private child P.Messages can be sensible to group these messages in a way such that : - the messages are outside genericity (and possible constant duplication), - translated versions can be easily written. 2= Assume an abstract class with polymorphic implementations declared in childs. Assume a collection of class-wide non-exported subprograms that are called in some, but not all child bodies. A private child can be a choice better than declaring this collection in the private part of the root. However, I found many cases of generic units that are conceptually private, but cannot be private childs because they have to be instantiated in private parts (in order to re-export the type). ---------- ---------- ---------- ---------- Michel Gauthier / Laboratoire d'informatique 123 avenue Albert Thomas / F-87060 Limoges telephone + 33 () 05 55 45 73 35 [or ~ 72 32] fax +33 () 05 55 45 73 15 [or ~72 01] no initial zero from abroad ! ! ! ---------- ---------- ---------- ---------- Si l'an 2000 est pour vous un mysticisme stupide, utilisez la base 9 If you feel year 2000 a stupid mystic craze, use numeration base 9 ---------- ---------- ---------- ----------