🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.lang.c++
Article #501

Re: Is the STL too authentic... ?

#501
From: Alexander Ehrler
Date: Mon, 02 Oct 1995 05:11
34 lines
1878 bytes
Andrew Koenig (ark@research.att.com) wrote:
: In article <44kgjg$cuv@nz12.rz.uni-karlsruhe.de> ukci@rzstud1.rz.uni-karlsruhe.de (Alexander Ehrler) writes:

: It is possible to implement safe containers on top of unsafe ones.
: I don't know how to implement fast containers on top of slow ones.
: There is also nothing stopping implementations from providing
: bounds-checked versions of STL if they so desire.


Correct, but I think wether a container handles bound violations or not
is not only a question of implementation. It's important to know if
one can rely on exception handling by the utility classes. Therefore a list
of potentially thrown exceptions is part of a class member's interface.

The second problem is that every software company that provides an ISO C++
compiler has to write their own 'user-friendly' version of the standard
STL containers. This will probably lead to a bunch of different higher-level
classes, a situation we face today. AFAIK is the reason of including  
classlibs in the ISO standard to avoid such a mess.

Is there any problem with supporting fast low-level containers as well as
save containers (probably built on top of the fast ones) in the standard ?


Regards,

Alex


--

       ,,,,,        Alex Ehrler * University of Karlsruhe * Computer Science
      ( 0 @ )       Loetzenerstr. 18   *   D - 76139 Karlsruhe   *   Germany
 --oOO--(_)--OOo--  email: ukci@rz.uni-karlsruhe.de   *  phone: (0721)681609
Technical Details
Message-ID: <5v6uBzEbnTB@site71.ping.at>
Path: arc1-ca.pugleaf.net!site71.ping.at!wsog

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!site71.ping.at!wsog
Date: 02 Oct 1995 07:11:00 +0200
From: ukci@rzstud1.rz.uni-karlsruhe.de (Alexander Ehrler)
Sender: wsog@site71.ping.at (Walter Sommergruber)
Newsgroups: de.comp.lang.c++
Message-ID: <5v6uBzEbnTB@site71.ping.at>
Subject: Re: Is the STL too authentic... ?
X-Newsreader: XP v3.02
X-Charset: ISO-8859-1
Organization: Sommergruber Software & Dienstleistungen