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!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!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> <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> <1wut0nfod48s1.bdijufhvl1ez.dlg@40tude.net> <42383e11$0$26550$9b4e6d93@newsread4.arcor-online.net> Date: Wed, 16 Mar 2005 16:16:29 +0100 Message-ID: NNTP-Posting-Date: 16 Mar 2005 16:12:59 MET NNTP-Posting-Host: 005be3ca.newsread2.arcor-online.net X-Trace: DXC=T\P8eFcaT\gd:IG0JE`:@gQ5U85hF6f;djW\KbG]kaMhliQbn6H@_EiK\]BX8l1jfgWRXZ37ga[7jn919Q4_`VjiB8=X\UUgbkd X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:9498 comp.lang.c++:45986 Date: 2005-03-16T16:12:59+01:00 List-Id: On Wed, 16 Mar 2005 15:11:46 +0100, Georg Bauhaus wrote: > Dmitry A. Kazakov wrote: >> Access type is a type as any other. If it has to be a >> member of Set_Element'Class why shouldn't it be? > > Wrapping occurs, for example a set of ints will become a > set of int_also_set_element. What's wrong with that. Or, better: how ints could be in a set being not elements of the set? (:-)) > As there might have to be > some implementation for int_also_set_element, > it can be much less convenient than having a set of plain > ints. I'm afraid I don't fully understand what you mean here. Probably, that the implementation of the set will use class-wide objects instead of specific ones. It is definitely an issue to be addressed. This is why I wish a better ADT for Ada. > This is a chapter in OOSC2. It's good to have a copy anyway. > http://archive.eiffel.com/doc/oosc/ > From this page there is a link to a sample chapter every now > and then. See the bottom of the page. Presently it is: HOW TO FIND THE CLASSES -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de