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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,effb80d4bb7716dd X-Google-Attributes: gid103376,public From: Ehud Lamm Subject: Re: Wanted: Ada STL. Reward: Ada's Future Date: 1999/02/04 Message-ID: #1/1 X-Deja-AN: 440534256 References: <790f4q$3l@bgtnsc01.worldnet.att.net> <797qd4$r7e$1@nnrp1.dejanews.com> Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: The hebrew University of Jerusalem Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-02-04T00:00:00+00:00 List-Id: On Tue, 2 Feb 1999 robert_dewar@my-dejanews.com wrote: > That's odd, in talking to Alex, one of his comments about > why Ada was a better environment than C++ for the design of > such a library was *precisely* that Ada 95 does have > general pointer arithmetic (as should be familiar, if not > please look at System.Storage_Elements), and C++ does not > (since one can only for example compare pointers that point > into the same object meaningfully). As I said I didn't study this in any detail yet. This was my first and perhaps wrong impression from the article. Let me quote: "..remaining restrictions on pointer arithmetic, which can lead to inefficiencies in the implimentation of random access iterators, can be cicumvented through the C langauge interface library package." And: "The main issue in and Ada implimentation of the vector container involves the choice of the iterator type. Even with aliased type, Ada does not allow for pointer arithmetic. Therfore, one cannot increment a pointer toa vector element, or substract two pointers." Ehud Lamm mslamm@pluto.mscc.huji.ac.il