Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: >< swap operator Date: Mon, 08 Oct 2018 07:55:48 -0700 Organization: None to speak of Lines: 22 Message-ID: References: <36d546c5-b471-45fc-b87a-8ebebdc0c0b7@googlegroups.com> <9d5c4ae9-47ef-4da0-9b39-e7dbc96ab1be@googlegroups.com> <87va6gjile.fsf@bsb.me.uk> <87d0snkcs4.fsf@bsb.me.uk> <87o9c6j4fl.fsf@bsb.me.uk> <87pnwlhp1q.fsf@bsb.me.uk> <3d46f51b-bfcf-4966-8528-aa586e5e0cdb@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="044f0ceb07b55f0a559303158e3458ae"; logging-data="32626"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/KPMjBXBkji5q+vMtIwrYF" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:H2rWLIrcdaCK/cQSx8xdbJ8uJvU= sha1:rMso54eOSTgPmlhxOy7z3x7lAns= Xref: csiph.com comp.lang.c:136424 David Brown writes: [...] > C has a number of types of statement. These include "return" > statements, "for" statements, and so on. All statement types either end > in a semicolon as part of the statement itself, or are immediately > followed by another statement. Not quite. A compound statement does not end in a semicolon and need not be immediately followed by another statement. And I think you may have misstated that last clause. For example, in if (condition) x = 42; the statement `x = 42;` doesn't follow the if statement. It's part of the if statement. -- 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"