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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a8985ede8fe3d111 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-10-22 17:33:08 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!library.ucla.edu!galaxy.ucr.edu!ihnp4.ucsd.edu!network.ucsd.edu!mbk From: mbk@inls1.ucsd.edu (Matt Kennel) Newsgroups: comp.lang.ada Subject: Re: Child packages Date: 20 Oct 1994 00:27:17 GMT Organization: Institute For Nonlinear Science, UCSD Message-ID: <384dh5$efd@network.ucsd.edu> References: NNTP-Posting-Host: lyapunov.ucsd.edu X-Newsreader: TIN [version 1.1 PL8] Date: 1994-10-20T00:27:17+00:00 List-Id: Robert I. Eachus (eachus@spectre.mitre.org) wrote: : In article <3816h5$n3g@schonberg.cs.nyu.edu> dewar@cs.nyu.edu (Robert Dewar) writes: : > One thing that should be emphasized about child packages (since some of : > the posts of this thread have not been clear on this point) is that : > child packages in no way change their parents. If you have a parent A, : > and a child A.B, then if A.B does horrible things to the abstractions : > in A, it still does not affect anyone who with's only package A. It is : > only if package A.B is with'ed that the effects of the child are : > noticable. : Very misleading. If a PROGRAM doesn't include any withs of a : child, the child is not part of that program and can't harm it. But a : child unit can--even during elaboration--change hidden state in the : parent's private part. Question: do you mean objects declared to be type of the parent may be harmed due to the fact that there are subclasses of this parent? This sounds dumb. This isn't true, is it? Of course, if you create a child class which takes some implementation from a parent sure you might screw up the implementation taken from the parent, but this should only affect you if you use objects of the child class, right? : Robert I. Eachus -- -Matt Kennel mbk@inls1.ucsd.edu -Institute for Nonlinear Science, University of California, San Diego -*** AD: Archive for nonlinear dynamics papers & programs: FTP to -*** lyapunov.ucsd.edu, username "anonymous".