From -8332317153559309282
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,d39f22391071c878,start
X-Google-Attributes: gidf78e5,public
From: Alex Vinokur <alexander.vinokur@telrad.co.il>
Subject: It was in Algol60, but missing in STL
Date: 1999/03/15
Message-ID: <7ciumk$ksk$1@nnrp1.dejanews.com>#1/1
X-Deja-AN: 455258320
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
X-Original-Date: Mon, 15 Mar 1999 12:33:24 GMT
X-Http-User-Agent: Mozilla/4.51 [en] (X11; I; SunOS 5.6 sun4m)
X-Complaints-To: news@news.unimelb.edu.au
X-Trace: izvestia.its.unimelb.edu.au 921514117 3525 128.250.29.16 (15 Mar 1999 16:08:37 GMT)
X-Http-Proxy: 1.0 x12.dejanews.com:80 (Squid/1.1.22) for client 212.25.72.130
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Mon Mar 15 12:33:24 1999 GMT
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUANu0wc+EDnX0m9pzZAQFYsAF/eeT8kvz/9nRRtFMAyIjScjwYTrB1j6OD J//hohWE7tMVjZM0aFXBeZw1yg+Hi1Wx =yJUk
NNTP-Posting-Date: 15 Mar 1999 16:08:37 GMT
Newsgroups: comp.std.c++

Hi,

In Algol60 language (40 years ago) it was possible
   to work with arrays with various boundaries.
For example,
        array [5 : 20] is {a[5], a[6], ..., a[20]}
        array [-7 : 3] is {a[-7], a[-6], ..., a[3]}

In C/C++ we can work only with arrays
        {a[0], a[1], ..., a[size - 1]}.

The STL vector class is also vector
        {v[0], v[1], ..., v[size - 1]}.
There is no array/vector class with various boundaries
(I would like to be mistaken, but it seems I am not mistaken).

I have designed me own ClassFlexibleVector with various boundaries.
But I would like to use standard classes.

I don't ask why arrays with various boundaries are missing in C/C++.
But why are they missing in STL?
It was in Algol60.

        Thanks in advance,
        Alex


-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



