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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,91276ec2ea911d3f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!uucp.gnuu.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Generic procedures and their parameters Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Wed, 6 Sep 2006 17:09:53 +0200 Message-ID: <15ibl2xejtc68.1eg90p1fwn18p$.dlg@40tude.net> NNTP-Posting-Date: 06 Sep 2006 17:09:54 CEST NNTP-Posting-Host: b46bc1fd.newsspool3.arcor-online.net X-Trace: DXC=0T_BB]RL2V[f8j24CD<3lPMcF=Q^Z^V3X4Fo<]lROoRQ4nDHegD_]RUWU2@8\iLEMPDNcfSJ;bb[UFCTGGVUmh?TN\HXHJ4e80^bjbY9L4nhYY X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:6477 Date: 2006-09-06T17:09:54+02:00 List-Id: On Wed, 06 Sep 2006 16:14:07 +0200, Maciej Sobczak wrote: >> Why is that shaky? Integer IS ordered. > > Is it also tagged? Do you want it to be? Not Integer, but Integer'Class. > Integer is not only Ordered. It's also Summable, Subtractable, [...] Yes, it is called multiple inheritance. > In C++ the fact > that int is ordered does not require that it relates to some Ordered > class. Which is unfortunate for both C++ and Ada, because "to be ordered" = "a member of Ordered class." There is no obvious reason why they should be different. >> A hierarchy with Object at the top would be a Good Thing, IMHO. Trees >> are more aesthetically pleasing than forests. > > Opinions vary on this subject. :-) One does not exclude other. Ada provides a powerful type cloning mechanism (I mean: type X is new Y, unfortunately not for types, which are visibly tagged). You can take a branch and plant it as a new tree. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de