Article View: comp.lang.c
Article #1992Re: C and its peasant 'ancestors'
From: Keith Thompson
Date: Mon, 30 Nov 2026 02:50
Date: Mon, 30 Nov 2026 02:50
37 lines
2868 bytes
2868 bytes
cross@spitfire.i.gajendra.net (Dan Cross) writes:
[...]
> To be provocative, I think it is easier to conceptualize if one
> thinks of C as lacking first-class array types. Rather, C has
> pointers to contiguous regions of memory of some size; the
> array-like notation is just syntactic sugar around this.
This could lead to a lengthy discussion about what "first-class"
means. I'm not sure I want to participate in it.
My point of view is that C very definitely has array types, array
objects, array expressions, even array values. (A "value" is the
"precise meaning of the contents of an object when interpreted as
having a specific type". An array value consists of the values
of its elements.) It just restricts certain operations on array
types/objects/expressions/values.
My preference is to think about C as it's currently defined. It's
certainly important to understand where C's quirks came from, but
dmr and WG14 went to a great deal of effort to define C in its own
internally consistent terms. Understanding B certainly helps, but
it shouldn't be *necessary*.
> Btw, in the Q&A transcript at the above link, Ritchie says this
> when asked about C declaration syntax:
>
> |It was Ravi Sethi who observed that if C's unary star operator
> |were a postfix operator instead of a prefix operator, suddenly
> |everything becomes nice and linear and clear.
>
> (Now excuse me, I am ducking and running for cover....)
Ah, what might have been.
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Technical Details
Message-ID:
<11eio9n$28j2$1@kst.eternal-september.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!kst.eternal-september.org!.POSTED!not-for-mailReferences:
<11dup6q$v4j9$1@dont-email.me> <11eieib$3v2hj$1@kst.eternal-september.org> <11eifmr$4dk$1@reader2.panix.com> <11eij2a$hq5$1@kst.eternal-september.org> <11eimr1$4c3$1@reader2.panix.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!kst.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson <Keith.S.Thompson+u@gmail.com> Newsgroups: comp.lang.c Subject: Re: C and its peasant 'ancestors' Date: Sun, 29 Nov 2026 18:50:31 -0800 Organization: None to speak of Lines: 37 Message-ID: <11eio9n$28j2$1@kst.eternal-september.org> References: <11dup6q$v4j9$1@dont-email.me> <11eieib$3v2hj$1@kst.eternal-september.org> <11eifmr$4dk$1@reader2.panix.com> <11eij2a$hq5$1@kst.eternal-september.org> <11eimr1$4c3$1@reader2.panix.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Mon, 30 Nov 2026 02:50:32 +0000 (UTC) Injection-Info: kst.eternal-september.org; logging-data="74338"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+BqAfKByWkC7VZj2U4SQrt"; posting-host="63d87a7fc42574551319d0c4fff9e99c" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:jBUFHmgPOvZ4Xv0swvbQod3ff/Q= sha256:JRM92Oms5rYKkfXf4lvWwfT0VpZTaEdX9BwCo0A+PnM= sha1:xWQ/8CTXHUGeZOENjbV/TH7XKY0= sha256:QDAznB9zkwU0eS9WWh8JZLZRo8t+5xTHWFEQeARxa3E=