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,a270a1fc28d4f812 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-24 07:33:16 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: OOD in Ada? Date: 24 Jun 2002 10:19:35 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3d135676$0$8511$cc9e4d1f@news.dial.pipex.com> <3D153ABB.4090400@telepath.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1024928814 604 128.183.220.71 (24 Jun 2002 14:26:54 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 24 Jun 2002 14:26:54 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:26653 Date: 2002-06-24T14:26:54+00:00 List-Id: Ted Dennison writes: > Pat Rogers wrote: > > "David Crocker" wrote in message > > news:3d135676$0$8511$cc9e4d1f@news.dial.pipex.com... > >>as an OO developer but Ada novice, it appears to me that any attempt to > >>implement a large OO design in Ada will run into the following problems: > >> > >>1. The infamous "withing" problem (i.e. it is not possible to declare 2 > >>classes A and B, each in its own package, such that A has a method taking a > >>paremeter of type "access B", and B has a method with a parameter of type > >>"access A"); and > > I have not found that problem to be frequent. Others will tell > > about how to > > deal with it. > > Since you can't do it, it will eventally become second nature to > design in such a way that it doesn't happen. Actually, you can do it in GNAT; it supports the "with type" extension. The only time I've used it is when importing Java code; that's why the "with type" extension was added. > When it does, I generally consider this the language's little way of > telling me that my code needs to be better structured. In general, I agree with this. -- -- Stephe