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=-2.9 required=5.0 tests=BAYES_00,LOTS_OF_MONEY, MAILING_LIST_MULTI autolearn=unavailable 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 09:12:48 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: Francisco Javier Loma Daza Newsgroups: comp.lang.ada Subject: Re: on package naming, should the word Date: Fri, 05 Oct 2001 18:12:16 +0200 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <9pif1o01btl@drn.newsguy.com> <9pii95$jus$1@nh.pace.co.uk> <3bbd7a77.5463085@news.demon.co.uk> <9pk2dq01gvu@drn.newsguy.com> <9pkicf02ncr@drn.newsguy.com> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1002298367 38747 137.194.161.2 (5 Oct 2001 16:12:47 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Fri, 5 Oct 2001 16:12:47 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.18pre21 i686) X-Accept-Language: en X-Virus-Scanned: by AMaViS perl-11 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.4 Precedence: bulk X-Reply-To: Francisco.Loma@isotrol.com List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:13800 Date: 2001-10-05T18:12:16+02:00 Ted Dennison wrote: > In article <9pkicf02ncr@drn.newsguy.com>, mike@nospam says... > > > >In article , Ted says... > >> > >>>So, I do not see why one can't do this in Ada > >>> > >>>package Ada.awt.event is > >>> type ActionEvent is tagged record .... end record; > >>> -- primitive operations on ActionEvent here > >>> > >>> type AdjustmentEvent is tagged record .... end record; > >>> -- primitive operations on AdjutsmentEvent here > >>> etc... > >>>end Ada.awt.event; > > > >> > >>You don't want to do this, because it gives all these classes complete > >>visibility into each other's implementation. > > > >I was mapping the Java classes/packge to Ada. In Java, all classes in > >the same package have the default access such that they can see each others. > > The proper progression for classes A and B in Ada is: > > 1) If A and B can't see each other's "protected" areas, then they should be in > different packages. > Well... they can be in different packages if they DO NOT depend on each other. Say -- file A.ads with B; package A is type Object is private; procedure Send(this: Object; to: B.Object); end A; --file B.ads with A; package B is type Object is private; procedure Send(this: Object; to: A.Object); end B; Will be 'with type' really standarized?, I hope so