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,703c4f68db81387d X-Google-Thread: 109fba,703c4f68db81387d X-Google-Attributes: gid103376,gid109fba,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed.freenet.de!151.189.20.20.MISMATCH!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: [OT] Re: Teaching new tricks to an old dog (C++ -->Ada) Newsgroups: comp.lang.ada,comp.lang.c++ User-Agent: 40tude_Dialog/2.0.14.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: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <87r7iu85lf.fsf@insalien.org> <1110052142.832650@athnrd02> <42309456$1@news.broadpark.no> <4232ab3a$0$26547$9b4e6d93@newsread4.arcor-online.net> <1110825790.396769@athnrd02> <1gf23j59mnsm2.wimnrcdrb09u.dlg@40tude.net> <1d7hl8pj8dhsh.m8mjwl7qxs86$.dlg@40tude.net> <4236bdab$0$1098$9b4e6d93@newsread2.arcor-online.net> <42381bf1$0$26546$9b4e6d93@newsread4.arcor-online.net> Date: Wed, 16 Mar 2005 14:31:53 +0100 Message-ID: <1wut0nfod48s1.bdijufhvl1ez.dlg@40tude.net> NNTP-Posting-Date: 16 Mar 2005 14:28:22 MET NNTP-Posting-Host: 9a81b846.newsread2.arcor-online.net X-Trace: DXC=3hG;5=iD3aQghFd\k@b23TQ5U85hF6f;TjW\KbG]kaMX]kI_X=5KeaV@WLLO>ILfT_WRXZ37ga[7Zn919Q4_`VjYB8=X\UUgbkT X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:9484 comp.lang.c++:45942 Date: 2005-03-16T14:28:22+01:00 List-Id: On Wed, 16 Mar 2005 12:46:10 +0100, Georg Bauhaus wrote: > Dmitry A. Kazakov wrote: >> On Tue, 15 Mar 2005 11:51:33 +0100, Georg Bauhaus wrote: > >>>generic >>> type Ordered is new Has_Less_Than with private; >>>package ... >>> >>>where Has_Less_Than is an abstract type with a "<" operation. >> >> In which case it simple does not need to be generic! Ordered here is a >> normal ADT, which class is Has_Less_Than'Class. So the package should work >> directly with the class and be non-generic. End of story. > > If you want a set of pointers to Employee'class, how can do you do > it easily without templates for sets? Exactly the same way. Access type is a type as any other. If it has to be a member of Set_Element'Class why shouldn't it be? type Employee_Ptr is access Employee'Class, new Set_Element; > Have you read Bertrand Meyer's comparison? What do you think? Any link? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de