Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Difference between these pointer syntaxes Date: Mon, 05 Sep 2016 14:13:20 -0700 Organization: None to speak of Lines: 25 Message-ID: References: <4991b886-1f54-4098-bf57-ba59710b99d1@googlegroups.com> <87bn0rut34.fsf@bsb.me.uk> <9283b112-8250-4e0b-b149-6ca728a3200b@googlegroups.com> <07faa95e-2470-4375-93e9-15e79ee4e0e4@googlegroups.com> <55578778-4482-458e-b43d-b763732c0054@googlegroups.com> <7827ea6f-7c56-4f96-a4b5-82ea47064b14@googlegroups.com> <4748638e-0581-4318-9c05-74e2b292dc73@googlegroups.com> <8760qazncd.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="6217"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19yvapq1eGLmUYKVVjwRTxK" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:xK9WVK4I9qTcy/aDntzWHM1lY+0= sha1:6blfecZKlXv0PfN7a8VrvnrhvZk= Xref: csiph.com comp.lang.c:93233 Ben Bacarisse writes: > Malcolm McLean writes: [...] >> My "nutty ideas" are shared by C++ community. > > One of the nutty ideas in question is your use of the term array, but > C++ has arrays with exactly the meaning you reject. > > std::array A; > > defines an object will full citizenship (std::arrays can be assigned, > passed to, and returned from functions, for example) but with no > distinction about which elements are indeterminate. It's a "buffer" > in Malcom-speak. And of course C++ has plain arrays with the same semantics that arrays have in C. But yes, it is telling that when C++ added what Malcolm would call a "buffer" to the standard library, it chose the name "array". -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"