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,c9629eba26884d78 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-08-02 07:46:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread4.news.pas.earthlink.net.POSTED!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada References: <3f27bab4$1@baen1673807.greenlnk.net> <3F28F61D.4050504@noplace.com> <3F2A5303.6080902@noplace.com> <3F2BA9C8.9030700@noplace.com> Subject: Re: XML DOM Binding for Ada 95 - matter of style X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: Date: Sat, 02 Aug 2003 14:46:36 GMT NNTP-Posting-Host: 65.110.133.134 X-Complaints-To: abuse@earthlink.net X-Trace: newsread4.news.pas.earthlink.net 1059835596 65.110.133.134 (Sat, 02 Aug 2003 07:46:36 PDT) NNTP-Posting-Date: Sat, 02 Aug 2003 07:46:36 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:41143 Date: 2003-08-02T14:46:36+00:00 List-Id: "Marin David Condic" wrote in message news:3F2BA9C8.9030700@noplace.com... > So things like type extension don't count? :-) The type extension exists in order to implement the dynamically bound operation. > I see tagged types as the way to fully implement the Object Oriented > paradigm in Ada. Other mechanisms in Ada could be used to support parts > of the OO paradigm - sometimes they have to be brutally flogged into > that service - but none really creates the full OO paradigm as do tagged > types. Except for the private derivation needed to get controlledness, Charles manages to be "object-oriented" without using inheritance. There is no brutal flogging. In fact Charles could be ported to Ada83 without much pain. > Not all programs require OO nor are they best expressed in the OO > method. I work on software like that every day. But if you have an OO > design, I'd think that trying to beat it into submission with the blunt > instrument of a discriminated record is not the best approach. If it is > an OO design, create an OO implementation with the correct Ada idiom for > that - the tagged record and its surrounding package components. Tagged types are one tool among many. Use the tool that makes sense for your problem. If it's appropriate to use a tagged type, then by all means do so.