Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #163243

Re: on ``vector'' and ``array''

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.c
Subject Re: on ``vector'' and ``array''
Date 2021-10-29 16:38 +0100
Organization A noiseless patient Spider
Message-ID <87a6irvo1a.fsf@bsb.me.uk> (permalink)
References <8635oklbti.fsf@levado.to> <9288af47-3e78-4016-b5a6-519d44b560b6n@googlegroups.com> <87fsskugpt.fsf@bsb.me.uk> <61ed0973-6096-415f-bd37-4d3881339cb6n@googlegroups.com>

Show all headers | View raw


Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:

> On Friday, 29 October 2021 at 14:02:36 UTC+1, Ben Bacarisse wrote:
>> Malcolm McLean <malcolm.ar...@gmail.com> writes: 
>> 
>> > In C++, the term "vector" is misused quite badly to refer to an 
>> > array. That's because early on in the development of the standard 
>> > template library, the identifier "array" was used for an inconvenient 
>> > container that is seldom used, creating the need for another name to 
>> > use for the normal array type.
>> What was array used for in the early STL? std::array is present in 
>> recent versions of C++, but I don't know of the earlier usage. 
>> 
> I've checked and it appears I was wrong. The inconvenient type was "valarray"
> (an array constrained to hold scalars). "array" was avoided because of the use 
> of the term in the C standard.

Ah.  I followed C++ development from the start (pre-STL) but then moved
on to other things only to come back when the STL was largely fully
formed. 

-- 
Ben.

Back to comp.lang.c | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

on ``vector'' and ``array'' Meredith Montgomery <mmontgomery@levado.to> - 2021-10-29 01:00 -0300
  Re: on ``vector'' and ``array'' Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2021-10-28 21:29 -0700
  Re: on ``vector'' and ``array'' Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2021-10-29 04:42 -0700
    Re: on ``vector'' and ``array'' Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-10-29 14:02 +0100
      Re: on ``vector'' and ``array'' Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2021-10-29 06:58 -0700
        Re: on ``vector'' and ``array'' Meredith Montgomery <mmontgomery@levado.to> - 2021-10-29 12:02 -0300
          Re: on ``vector'' and ``array'' Anand Hariharan <mailto.anand.hariharan@gmail.com> - 2021-10-30 09:33 -0700
            Re: on ``vector'' and ``array'' Meredith Montgomery <mmontgomery@levado.to> - 2021-10-30 15:29 -0300
            Re: on ``vector'' and ``array'' Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2021-10-30 13:25 -0700
              Re: on ``vector'' and ``array'' Meredith Montgomery <mmontgomery@levado.to> - 2021-10-31 12:02 -0300
        Re: on ``vector'' and ``array'' Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-10-29 16:38 +0100
    Re: on ``vector'' and ``array'' Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2021-10-29 11:08 -0700

csiph-web