comp.lang.ada
 help / color / mirror / Atom feed
From: Dmitry A. Kazakov <mailbox@dmitry-kazakov.de>
Subject: Re: "Must instantiate controlled types at library level." Why?
Date: Mon, 17 May 2004 17:03:17 +0200
Date: 2004-05-17T17:03:17+02:00	[thread overview]
Message-ID: <n8kha0p2p6qpib5fffln80vkmm3ajg39to@4ax.com> (raw)
In-Reply-To: 1178094.WJvXeYHtkb@linux1.krischik.com

On Mon, 17 May 2004 15:46:52 +0200, Martin Krischik
<krischik@users.sourceforge.net> wrote:

>Dmitry A. Kazakov wrote:
>
>> On Mon, 17 May 2004 02:30:23 GMT, Hyman Rosen <hyrosen@mail.com>
>> wrote:
>> 
>>>Ludovic Brenta wrote:
>>>> You are not being helpful to anyone with this comment.  If you think I
>>>> am ignorant, please explain why, or otherwise give me one good reason
>>>> not to put your name in my kill file.
>>>
>>>But OK. You state that "The std::vector template class is not
>>>a first-class citizen". I haven't a clue as to what that might
>>>mean. All a std::vector really is in implementation is a record
>>>conatining a length and a couple of pointers. You can pass it
>>>and return it by value. It's as "first-class" as anything else
>>>in the language.
>> 
>> The difference between first-class and second-class things is that the
>> former cannot be expressed in other language things. Clearly it is
>> desirable to have a minimal set of first-class things providing a
>> richest possible set of second-class ones with minimal efforts. Thus
>> comparing two languages one should take into account not what the
>> first-class objects sets contain or not, but how productive and small
>> they are.
>
>How very true. The problem with C/C++ is that the first-class things are
>like an Iceberg. Very small and beautyfull to look at.

BTW, I do not find them beautiful. And to be small is not all.
Assembler is even smaller.

>But below the
>surface, hidden from view they are big and ugly and tear your ship apart.

>And missing propper arrays, with/import and save type convertion there are
>still to small.

It is a question whether proper arrays should be built-in. It is
thinkable that a very advanced ADT could allow users to define some
sort of generic array interface and have all arrays just
implementations. This would probably solve many problems with
containers.

Of course it is not what C++ templates could handle. Besides that
templates are IMO a wrong way. So at this stage it is indeed better to
have arrays built-in.

--
Regards,
Dmitry Kazakov
www.dmitry-kazakov.de



  reply	other threads:[~2004-05-17 15:03 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-11 23:04 "Must instantiate controlled types at library level." Why? Peter C. Chapin
2004-05-12  1:03 ` Jeffrey Carter
2004-05-12 10:47   ` Peter C. Chapin
2004-05-12 11:25     ` Ludovic Brenta
2004-05-12 14:41       ` Martin Krischik
2004-05-13  2:20       ` Peter C. Chapin
2004-05-12 11:55     ` Martin Krischik
2004-05-13  2:59       ` Peter C. Chapin
2004-05-13  7:10         ` Martin Krischik
2004-05-13 10:36           ` Peter C. Chapin
2004-05-13 11:18             ` Martin Krischik
2004-05-13 22:27               ` Peter C. Chapin
2004-05-13 22:54               ` Freejack
2004-05-14  7:13                 ` Martin Krischik
2004-05-14 13:50                   ` Xenos
2004-05-14 17:27                     ` Georg Bauhaus
2004-05-14 17:58                       ` Xenos
2004-05-14 18:49                     ` Martin Krischik
2004-05-14 19:40                       ` Xenos
2004-05-14 22:47                         ` Ludovic Brenta
2004-05-15  8:34                           ` Martin Krischik
2004-05-16  2:55                           ` Hyman Rosen
2004-05-16 13:48                             ` Ludovic Brenta
2004-05-17  2:30                               ` Hyman Rosen
2004-05-17  5:39                                 ` Martin Dowie
2004-05-17  7:48                                   ` Ludovic Brenta
2004-05-17 15:01                                     ` Hyman Rosen
2004-05-17 16:31                                       ` Georg Bauhaus
2004-05-17 17:40                                         ` Hyman Rosen
2004-05-17 19:17                                           ` Georg Bauhaus
2004-05-17  6:24                                 ` Martin Krischik
2004-05-17 19:48                                   ` James Kanze
2004-05-18  6:27                                     ` Martin Krischik
2004-05-17 12:33                                 ` Dmitry A. Kazakov
2004-05-17 13:46                                   ` Martin Krischik
2004-05-17 15:03                                     ` Dmitry A. Kazakov [this message]
2004-05-17 16:02                                   ` Alexander E. Kopilovich
2004-05-18  7:48                                     ` Dmitry A. Kazakov
2004-05-19  1:20                                       ` Alexander E. Kopilovich
2004-05-19  9:59                                         ` Dmitry A. Kazakov
2004-05-19 12:38                                           ` Hyman Rosen
2004-05-19 13:28                                             ` Dmitry A. Kazakov
2004-05-19 13:09                                           ` Georg Bauhaus
2004-05-19 13:44                                             ` Hyman Rosen
2004-05-19 14:17                                               ` Dmitry A. Kazakov
2004-05-19 14:15                                             ` Dmitry A. Kazakov
2004-05-21 11:39                                               ` Georg Bauhaus
2004-05-21 20:33                                                 ` Dmitry A. Kazakov
     [not found]                                                   ` <c8mkor$rlq$1@a1-hrz.uni-duisburg.de>
2004-05-23  1:28                                                     ` Hyman Rosen
2004-05-23  8:55                                                     ` Dmitry A. Kazakov
2004-05-24 11:38                                                       ` Georg Bauhaus
2004-05-24 13:57                                                         ` Dmitry A. Kazakov
2004-05-24 14:40                                                           ` Georg Bauhaus
2004-05-25  8:32                                                             ` Dmitry A. Kazakov
2004-05-25 15:47                                                               ` Georg Bauhaus
     [not found]                                   ` <URJ8Eg0vzF@VB1162.spb.edu>
2004-05-17 16:50                                     ` Marius Amado Alves
2004-05-18  8:27                                       ` Dmitry A. Kazakov
2004-05-15 17:20                     ` Pascal Obry
2004-05-13 19:33             ` Randy Brukardt
replies disabled

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