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!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Michael Paus Newsgroups: comp.lang.ada Subject: Re: Idiom for a class and an object in Ada Date: Wed, 20 Oct 2004 19:55:59 +0200 Organization: 1&1 Internet AG Message-ID: References: <41769d26$0$91009$39cecf19@news.twtelecom.net> NNTP-Posting-Host: p508a89c3.dip0.t-ipconnect.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: online.de 1098294959 24429 80.138.137.195 (20 Oct 2004 17:55:59 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Wed, 20 Oct 2004 17:55:59 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030612 X-Accept-Language: en-us, en In-Reply-To: <41769d26$0$91009$39cecf19@news.twtelecom.net> X-Enigmail-Version: 0.76.8.0 X-Enigmail-Supports: pgp-inline, pgp-mime Xref: g2news1.google.com comp.lang.ada:5539 Date: 2004-10-20T19:55:59+02:00 List-Id: Matthew Heaney wrote: > "Michael Paus" wrote in message > news:cl6395$g1l$1@online.de... > >>You have chosen to use a tagged type to represent your A/D converters >>which I think is a wise decision but neither you nor anybody else >>seems to be able to give a good reason for that (if I have not missed it >>:-) >>and also in the way you have started you are missing an opportunity >>for flexibility in your design and for really exploiting your OO approach. > > > How are you able to evaluate whether the use of a tagged type is a "wise > decision" unless you have been given reasons why the type is tagged? According to my experience in similar situations the use of tagged types offers more flexibility than other approaches and I therefore think it is a wise decision. > My judgement about the fact that the type is tagged and nonlimited is that > this is a very *unwise* decision. Your opinion without an explanation. > There is no reason for the type to be tagged unless you need type extension > or dynamic binding. I think I have explained already why you do need type extension here. > There is no reason why the global objects' type should have assignment. I did not say anything about assignment. > There is no reason why the global objects' type should allow anyone to > create instances anywhere. I also did not say anthing about that. You can hide that in a factory package.