comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Dynamically tagged expression required
Date: Mon, 12 Dec 2005 20:16:37 +0100
Date: 2005-12-12T20:16:37+01:00	[thread overview]
Message-ID: <3960599.EjDTT3E5sO@linux1.krischik.com> (raw)
In-Reply-To: uvexvecdk.fsf@earthlink.net

Matthew Heaney wrote:

> Martin Krischik <krischik@users.sourceforge.net> writes:
> 
>> This is of corse true. It is just that my first container library was IBM
>> Open-Class-Library. The OCL is a far higher level container library when
>> compared to the STL. And as such I prefer the Booch-Components over the
>> Ada.Containers.
> 
> Why do you say that the OCL is a "higher-level library" than the STL or
> the Ada
> standard library?  In the STL you say:
> 
>   map_t m;
>   //...
>   m[k] = e;
>   m.erase(k);
> 
> and in Ada you say:
> 
>   M : Map;
> begin
>   --...
>   M.Include (K, E);
>   M.Exclude (K);

It's the interface. i.E. The STL cursors tries to mimic the C pointer
behavior. Pointer arithmetic is low-level in my eyes.

The OCL rather tries to mimic a simple database. And databases are more high
level then pointers in my eyes.

> How much more high-level can a library be?  Considering your description
> of the OCL (given in another post), did you really mean that it's more
> low-level?

That depends where you enter the class Hirachie. If you jump in at the
abstract (IA..) or generic (IG...) level then yes you get your hands dirty
by low level stuff. But at least you can.

Martin

-- 
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com



  reply	other threads:[~2005-12-12 19:16 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-08 13:50 Dynamically tagged expression required Maciej Sobczak
2005-12-08 14:46 ` Georg Bauhaus
2005-12-08 14:52 ` Dmitry A. Kazakov
2005-12-08 19:17 ` Martin Krischik
2005-12-09  9:09   ` Maciej Sobczak
2005-12-09 12:05     ` Jean-Pierre Rosen
2005-12-09 16:41     ` Robert A Duff
2005-12-09 20:18       ` Martin Krischik
2005-12-11  0:43         ` Matthew Heaney
2005-12-11 11:45           ` Martin Krischik
2005-12-11 14:24             ` Matthew Heaney
2005-12-11 15:18               ` Martin Krischik
2005-12-11 18:07             ` Matthew Heaney
2005-12-12 19:16               ` Martin Krischik [this message]
2005-12-13 20:43                 ` Georg Bauhaus
2005-12-13 21:00                   ` Georg Bauhaus
2005-12-09 20:41       ` Randy Brukardt
2005-12-09 20:16     ` Martin Krischik
2005-12-11  0:46       ` Matthew Heaney
2005-12-12  9:44       ` Maciej Sobczak
2005-12-12 19:13         ` Martin Krischik
2005-12-14 10:22           ` Maciej Sobczak
2005-12-15 20:10             ` Martin Krischik
replies disabled

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