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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7eaf9f2597de2259 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-05 07:37:27 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!drn From: mike@nospam Newsgroups: comp.lang.ada Subject: Re: on package naming, should the word "_pkg" be part of it? Date: 5 Oct 2001 07:17:57 -0700 Organization: Newsguy News Service [http://newsguy.com] Message-ID: <9pkfel02gd9@drn.newsguy.com> References: <9pif1o01btl@drn.newsguy.com> <9pii95$jus$1@nh.pace.co.uk> <3bbd7a77.5463085@news.demon.co.uk> <9pk2dq01gvu@drn.newsguy.com> NNTP-Posting-Host: p-977.newsdawg.com X-Newsreader: Direct Read News 2.90 Xref: archiver1.google.com comp.lang.ada:13789 Date: 2001-10-05T07:17:57-07:00 List-Id: In article , Stephen says... > > >> >> For example, in Java, the package java.awt.event contains these classes: >> >> ActionEvent >> AdjusmentEvent >> ComponentAdapter >> ContainerAdapter >> etc... > >So you are saying the convention in Java is to allways include some >type information in the name. > no. not at all. >How do you name something that is a list of arrays of pointers to >symbol table entries? > there are no pointers in java :) You can use an ArrayList class for the above: ArrayList m= new ArrayList( ....) ; // many different constructors exist. >So what name do you give to the directory? Does it end in Package? > the directory name is the package name. no it does not end in a "package". for example, java.lang is located in the "folder" java/lang/ > >Huh? Ahh. In Java, you put many classes in one directory. Yes, those classes that belong to that package. >Ok. In Ada, >you can have many child packages of one parent package; same naming >conventions. > Yes, but each one of those files in Ada is a package itself (a child package, but a package none-the-less). In Java, it is silly to have a package that contains only ONE class. (i.e. a directory that contains one file). usually a package contains few classes at least, and it is not uncommon to have 10-20 classes (files) in one directory (package) in Java.