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!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!stamper.news.atl.earthlink.net!newsread2.news.atl.earthlink.net.POSTED!d9c68f36!not-for-mail From: Marin David Condic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Idiom for a class and an object in Ada References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Thu, 21 Oct 2004 12:33:17 GMT NNTP-Posting-Host: 209.165.23.7 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.atl.earthlink.net 1098361997 209.165.23.7 (Thu, 21 Oct 2004 05:33:17 PDT) NNTP-Posting-Date: Thu, 21 Oct 2004 05:33:17 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: g2news1.google.com comp.lang.ada:5577 Date: 2004-10-21T12:33:17+00:00 List-Id: I chose the A/D converter example because I needed to think of something that exists statically in some fixed number within a system and is highly unlikely to change over time. I might have gone political and used "Senate Seats" since there are only 50 of them and (depending on the application in mind) will likely be some kind of fixed objects from start to finish. I'm really sorry people got wrapped around the axle of the A/D stuff because I was looking for a more general answer to a more general question about OO Programming in Ada. That said, I thought your remarks were well thought out anyway. ;-) MDC Michael Paus wrote: > 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. -- ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jsf.mil/NSFrames.htm Send Replies To: m o d c @ a m o g c n i c . r "Power corrupts. Absolute power is kind of neat" -- John Lehman, Secretary of the Navy 1981-1987 ======================================================================