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,100eb0a59892e906 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: How to pass around access types to interfaces? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <8bd7e8eb-b463-4dea-8b62-42b6486557f0@u65g2000hsc.googlegroups.com> <49086ff8$1@news.post.ch> <48a5ef39-4006-454b-8abe-c40e3178a8cd@b38g2000prf.googlegroups.com> Date: Fri, 31 Oct 2008 15:46:33 +0100 Message-ID: NNTP-Posting-Date: 31 Oct 2008 15:46:33 CET NNTP-Posting-Host: 8ccd7006.newsspool1.arcor-online.net X-Trace: DXC=lba8IZF^hoFE4ZB2flKORAic==]BZ:afN4Fo<]lROoRA^YC2XCjHcbI?@AV>hR\\>JDNcfSJ;bb[EFCTGGVUmh?DLK[5LiR>kgBH>Xd8A;7j8F X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:8268 Date: 2008-10-31T15:46:33+01:00 List-Id: On Fri, 31 Oct 2008 06:38:17 -0700 (PDT), Maciej Sobczak wrote: > On 29 Pa�, 15:15, Martin Krischik > wrote: > >> This is where C++ lags. > > No, this is not a language issue - it is the question of standard > library completeness. These libraries cannot be complete because of certain language issues. In order to have containers of copyable polymorphic objects you need a polymorphic copy. > In this aspect both Ada and C++ lag terribly. Historically C++ has evolved to meet needs of the designers of STL. Unfortunately they did not much care about the language itself. One could argue that same happened to Ada 2005. The languages lag not in libraries, they do in their types systems exposed to numerous problems. An inability to have simple container types of polymorphic elements is merely a consequence of these problems. Yes you could workaround many of these problems with pointers, which is in the core of all proposals. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de