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: absence of max Date: Wed, 30 Nov 2016 12:52:34 -0800 Organization: None to speak of Lines: 27 Message-ID: References: <0e1db67d-0ab8-4971-a319-8aa66a40b873@googlegroups.com> <436aadfe-20e5-4349-bdf4-9bac145b0d7e@googlegroups.com> <87oa0zi280.fsf@bsb.me.uk> <871sxvhw4i.fsf@bsb.me.uk> <87a8ch18kc.fsf@bsb.me.uk> <874m2o22jy.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="3bc5dda710eeebf204839babe4155a1c"; logging-data="20612"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+D3VQDhSnO+8u+xnlaXrLb" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:rezjMADMYP9b7KIjQr4cJfuyd34= sha1:2UyCOqcj8O/+p6LUkQDxapUKij4= Xref: csiph.com comp.lang.c:97793 BartC writes: > On 30/11/2016 19:25, Ben Bacarisse wrote: >>>>>> On 11/30/16 12:17 AM, BartC wrote: >>>>>>> int A; >>>>>>> A = (&A)[123456789]; > >> I think BartC wants a syntax that distinguishes between pointers and >> arrays, > > Syntax on its own won't know what's an array and what's a pointer. > > The restriction I would have liked (or would simply have liked others to > acknowledge since its too late for the language) was that A[i] is only > allowed when A is of type T[] (ie. array of T). [...] Can you clarify what you mean by "would simply have liked others to acknowledge"? What form would such an acknowledgement take? I've repeatedly acknowledged that you want such a restriction. What more do you want? -- 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"