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-05 13:00:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail From: Marin David Condic Newsgroups: comp.lang.ada Subject: Re: XML DOM Binding for Ada 95 - matter of style Date: Tue, 05 Aug 2003 15:59:35 -0400 Organization: MindSpring Enterprises Message-ID: <3F300CA7.2020003@noplace.com> References: <3f27bab4$1@baen1673807.greenlnk.net> <3F28F61D.4050504@noplace.com> <3F2A5303.6080902@noplace.com> <3F2BA9C8.9030700@noplace.com> NNTP-Posting-Host: d1.56.b8.57 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Server-Date: 5 Aug 2003 20:00:07 GMT User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 (OEM-HPQ-PRS1C03) X-Accept-Language: en-us, en Xref: archiver1.google.com comp.lang.ada:41208 Date: 2003-08-05T20:00:07+00:00 List-Id: You can use type extension without adding anything "dynamic" to a system. Its a perfectly good way of adding things to a record type that already exists. The "dynamic" part happens only if you are using dispatching in some way. AFAIK, you can add subprograms with a type extension that can be determined statically. They just can't be used as class-wide operations. People have different styles. I don't object to discriminated records totally - it can be made to work and in some cases, it is a reasonable reflection of a given design. However, since Ada got tagged records and is capable of making classes, I think it has diminished the need for things like discriminated records because tagged records are so much more powerful and they address the same need. In the case of the XML DOM, I thought they were a more natural reflection of the design. You may have done it differently and it may work fine, but I don't think it lines up well with the intent of the DOM spec - at least not as well as tagged records would have. MDC Matthew Heaney wrote: > > > The type extension exists in order to implement the dynamically bound > operation. > -- ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jast.mil/ Send Replies To: m c o n d i c @ a c m . o r g "In general the art of government consists in taking as much money as possible from one class of citizens to give to the other." -- Voltaire ======================================================================