Sujet : Re: do { quit; } else { }
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.cDate : 13. Apr 2025, 21:08:52
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20250413130116.546@kylheku.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2025-04-13, Michael S <
already5chosen@yahoo.com> wrote:
The funny thing is that in original C prefix form of [] indexing was
equivalent to the postfix form. May be, it still is in C23, I didn't
try to look in the docs or test.
Are you thinking of a[i] being *(a + i) being i[a] due to commutativity?
That's really not a useful feature. Actually right down to a + i being
commutative when a is a pointer. It would be fine if only the
<pointer> + <integer> combination were allowed.
-- TXR Programming Language: http://nongnu.org/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca