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,d10596e187e90822 X-Google-Attributes: gid103376,public From: dale@cs.rmit.edu.au (Dale Stanbrough) Subject: Re: Private Children Date: 1999/06/24 Message-ID: #1/1 X-Deja-AN: 493144246 References: <7klja3$c0p$1@nnrp1.deja.com> <376E70A5.F77E558D@averstar.com> <376E9EEB.322A3F39@averstar.com> <7kmoe4$o83@dfw-ixnews15.ix.netcom.com> <7kr4pc$bb9@dfw-ixnews15.ix.netcom.com> X-Complaints-To: abuse@cs.rmit.edu.au X-Trace: emu.cs.rmit.edu.au 930181717 812 144.205.16.58 (23 Jun 1999 23:48:37 GMT) Organization: RMIT NNTP-Posting-Date: 23 Jun 1999 23:48:37 GMT Newsgroups: comp.lang.ada Date: 1999-06-23T23:48:37+00:00 List-Id: Richard D Riehle wrote: An opaque type is a type that contains nothing but a reference to data. This is quite easy using Ada's incomplete type definition. These can be tagged for extensibility while hiding all the details within a package body. Consider..." Yes, but that forces me to change the representation that I may have chosen for very good reasons, just to get around what I view is a problem in how "private" works for packages. " In the final analysis, though, encapsulation is something like the lock on a safe that is intended to keep honest people honest. If someone is determined to break encapsulation, they will find a way to do it, even if they have to crack open your package body and perform "open heart surgery."" Yes, but this doesn't really address the issue at hand. What I am arguing is that Ada could have been -more- helpful than it is in supporting encapsulation, not that we need not worry about it encapsulation because people can break it if they want to (after all anyone can use unchecked-perversion to open up any private type they like!). Certainly encapsulation doesn't (or rather in Ada's case, shouldn't) end at the level of package hierachies. Dale