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,8b8748382fcfacc1 X-Google-Attributes: gid103376,public From: John Rusnak Subject: Re: friend classes in ada95 Date: 2000/04/18 Message-ID: <38FCD19F.49DD6519@lmco.com>#1/1 X-Deja-AN: 612863194 Content-Transfer-Encoding: 7bit References: <38F6B617.34E216A7@emw.ericsson.se> <38F887AE.8CDA24E0@acm.org> <8dc8oi$kda$1@nnrp1.deja.com> <38FBBC72.7FDE6583@research.canon.com.au> <8dh37m$qef$2@wanadoo.fr> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Lockheed Martin Corporation Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-04-18T00:00:00+00:00 List-Id: C++ allows you to put many classes in one namespace and also allows you to have inner classes which are concepts analogous to putting more than one tagged type in a package. Java's definition of a package is essentially a grouped collection of classes. Java also allows you to have inner classes (I believe) and also allows you to define more than one class within a given file, although only one will be publicly available for use outside the file. Note that it is recommended in Ada as a matter of good style NOT to put more than one tagged type in a package. (See Section9.6 of the Styl Guide). And I have to agree with this design choice. When I do have to put a seond tagged type in a package, I generally place it within the context of an internal (child?) package. -John