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!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!news.uni-stuttgart.de!carbon.eu.sun.com!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 14:46:28 +0000 (UTC) Organization: BT Openworld Message-ID: References: <9175719.eWmeGlFrVu@linux1.krischik.com> NNTP-Posting-Host: host81-152-56-142.range81-152.btcentralplus.com X-Trace: hercules.btinternet.com 1098197188 20531 81.152.56.142 (19 Oct 2004 14:46:28 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Tue, 19 Oct 2004 14:46:28 +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:5456 Date: 2004-10-19T14:46:28+00:00 List-Id: Marin David Condic wrote: > There could be plusses and minuses to any given approach. I'm mostly > wondering what most Ada programmers prefer or tend to use. Personally, I would _never_ mix classes (or ADT's) and instances of them within the same package or even in the same package hierarchy. Neither would I never make data items public. It does lead to some extra lines of code but in my experience it makes testing easier and maintenance _much_ easier. -- Martin