comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: How to pass around access types to interfaces?
Date: Fri, 31 Oct 2008 15:46:33 +0100
Date: 2008-10-31T15:46:33+01:00	[thread overview]
Message-ID: <gyunu7rjqt4r.1gc2hh186lmwu.dlg@40tude.net> (raw)
In-Reply-To: 48a5ef39-4006-454b-8abe-c40e3178a8cd@b38g2000prf.googlegroups.com

On Fri, 31 Oct 2008 06:38:17 -0700 (PDT), Maciej Sobczak wrote:

> On 29 Paďż˝, 15:15, Martin Krischik <krisc...@users.sourceforge.net>
> 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



  reply	other threads:[~2008-10-31 14:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-24 11:45 How to pass around access types to interfaces? Sven
2008-10-24 12:24 ` Niklas Holsti
2008-10-24 12:49   ` Sven
2008-10-24 13:55     ` Ludovic Brenta
2008-10-24 21:32 ` sjw
2008-10-25  8:54   ` Sven
2008-10-25 15:43 ` Martin Krischik
2008-10-25 22:15   ` Robert A Duff
2008-10-26  8:02     ` Dmitry A. Kazakov
2008-10-26 15:50     ` Martin Krischik
2008-10-28 13:41       ` Maciej Sobczak
2008-10-29 14:15         ` Martin Krischik
2008-10-31 13:38           ` Maciej Sobczak
2008-10-31 14:46             ` Dmitry A. Kazakov [this message]
2008-10-29 12:42   ` Sven
2008-10-29 13:17     ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox