From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9262 invoked from network); 19 Jun 2023 10:48:45 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 19 Jun 2023 10:48:45 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 73C3C40BA1; Mon, 19 Jun 2023 20:48:38 +1000 (AEST) Received: from junk.nocrew.org (junk.nocrew.org [51.15.56.219]) by minnie.tuhs.org (Postfix) with ESMTPS id 4AF1E402F4 for ; Mon, 19 Jun 2023 20:48:29 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=junk.nocrew.org) by junk.nocrew.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1qBCQt-0007IC-Q6; Mon, 19 Jun 2023 10:48:27 +0000 From: Lars Brinkhoff To: Sebastien F4GRX Organization: nocrew References: <1e651370-3ada-e211-c277-409d6563500d@f4grx.net> <202306080331.3583Vrw7057546@ultimate.com> Date: Mon, 19 Jun 2023 10:48:27 +0000 In-Reply-To: (Sebastien F4GRX's message of "Mon, 19 Jun 2023 12:18:45 +0200") Message-ID: <7wcz1r20ec.fsf@junk.nocrew.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: lars@nocrew.org X-SA-Exim-Scanned: No (on junk.nocrew.org); SAEximRunCond expanded to false Message-ID-Hash: B4ADE22ERYOV7OZJ3OM3RMOUFKGHPBBN X-Message-ID-Hash: B4ADE22ERYOV7OZJ3OM3RMOUFKGHPBBN X-MailFrom: lars@nocrew.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: tuhs@tuhs.org X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: Software written in B List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Sebastien F4GRX wrote: >> my own compiler choked on if.b and mail.b because of this invalid >> expression in nxtarg: >> >> if(ap>ac) return(0*ap++); > > The return value is still a typo, but this expression should not pose > a problem, the AST shows that the postinc has priority, uses a legit > lvalue, which result is multiplied by zero. > > This was probably not intended but syntactically correct. I could well believe it's not a typo, but a "clever" way to write if(ap>ac) { ap++; return 0; }