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-Thread: 103376,901038687c38f61c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!newsfeed.stueberl.de!newsr1.ipcore.viaginterkom.de!news-peer1!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: Idiom for a class and an object in Ada Date: Tue, 19 Oct 2004 18:31:38 +0000 (UTC) Organization: BT Openworld Message-ID: References: <9175719.eWmeGlFrVu@linux1.krischik.com> <41753625$0$74189$39cecf19@news.twtelecom.net> NNTP-Posting-Host: host81-152-56-142.range81-152.btcentralplus.com X-Trace: hercules.btinternet.com 1098210698 6105 81.152.56.142 (19 Oct 2004 18:31:38 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Tue, 19 Oct 2004 18:31:38 +0000 (UTC) X-RFC2646: Format=Flowed; Response X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Xref: g2news1.google.com comp.lang.ada:5469 Date: 2004-10-19T18:31:38+00:00 List-Id: Matthew Heaney wrote: > "Martin Dowie" wrote in message > news:cl39c4$k1j$1@hercules.btinternet.com... >> >> Personally, I would _never_ mix classes (or ADT's) and instances of >> them within the same package or even in the same package hierarchy. > > I suggest you start using Ada95 to program in ... Ada95. Thanks for the suggestion but I'll pass for now... ;-) It is a style that was developed pre-95 but it works, has proven itself to produce very re-usable code (which embedding 'project specific' instances into potentially multi-project class/ADT's won't). If the ADT/class was indeed total specific to a project and there were always only going to be instances X, Y and Z, then fair we might look at a different style. But most of the ADT/classes we write just don't fall into that category. It's a style that also works for our 'C' projects (and Ada83 too, of course) and it works with all the CASE tools we use too (Teamwork, Real-time Studio). There are too many other "process and procedure fish to fry than changing this (all non-Ada related). -- Martin