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.9 required=5.0 tests=BAYES_00,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8c424d8135e68278 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-12 13:26:31 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!wn1feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!rwcrnsc51.POSTED!not-for-mail From: "Mark Lundquist" Newsgroups: comp.lang.ada References: <9v4jsj$bd1$1@infosun2.rus.uni-stuttgart.de> <9v7f26$qn2$1@infosun2.rus.uni-stuttgart.de> <3C1754BA.C4560423@informatik.uni-jena.de> Subject: Re: Ada2005 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: Date: Wed, 12 Dec 2001 21:25:29 GMT NNTP-Posting-Host: 204.127.202.211 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc51 1008192329 204.127.202.211 (Wed, 12 Dec 2001 21:25:29 GMT) NNTP-Posting-Date: Wed, 12 Dec 2001 21:25:29 GMT Organization: AT&T Broadband Xref: archiver1.google.com comp.lang.ada:17864 Date: 2001-12-12T21:25:29+00:00 List-Id: I ("Mark Lundquist" ) wrote in message news:Q_MR7.13041$7y.146471@rwcrnsc54... > > Here's an interesting thing to think about... Ada is a language that (a) is > lexically scoped, and (b) unifies encapsulation with namespace control, > where the namespace is hierarchial (public and private child packages). So > ironically, Ada allows for tighter encapsulation than that provided by flat > class-oriented languages. (It also allows for looser encapsulation, by > permitting object declarations in package specs, arguably a Bad Thing). Actually, I can take back the last part of that. Flat class-oriented languages that allow classwide object declarations (e.g. static data members in C++ and Java) are no better off in this way than Ada. (Smalltalk provides a higher level of encapsulation for objects themselves, since all objects are either class or instance variables, which are private. But Smalltalk is also flat, so it doesn't have the level of encapsulation for classes themselves that Ada has). -- mark http://home.attbi.com/~mlundquist2/consulting