Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: do { quit; } else { } Date: Sun, 13 Apr 2025 14:52:28 -0700 Organization: None to speak of Lines: 24 Message-ID: <87plhfg25f.fsf@nosuchdomain.example.com> References: <20250410080629.532@kylheku.com> <87a58mqt2o.fsf@nosuchdomain.example.com> <875xjaqmgf.fsf@nosuchdomain.example.com> <20250412101325.877@kylheku.com> <20250413214046.0000530f@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sun, 13 Apr 2025 23:52:30 +0200 (CEST) Injection-Info: dont-email.me; posting-host="524b4d7773c87d22edfb66b0f92ad1e6"; logging-data="3953434"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19PLURvH3Vd/qfcPZFKVNUS" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:VtAFeysWdRxDAHRg5d9a4tUE9Vo= sha1:GTaL4o8YW7yJWDh49zUt0GiMFoo= Xref: csiph.com comp.lang.c:392476 Michael S writes: [...] > 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. > However in type declarations one always had to use only postfix form. If you're referring to the equvalence of a[i] and i[a], that's still there in C23. I wouldn't call either of them "prefix form". The standard classifies indexing as a postfix operator. You can think of it as postfix, where a is the operand and [i] is the operator, or as an operator that takes two operands and uses a weird syntax that's not really either prefix, postfix, or binary: operand1 '[' operand2 ']' But you make an interesting point: the imperfect mapping of expressions to declarations does not include the case where the prefix of [] is an integer. (And I definitely don't have a problem with that.) -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */