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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12801 invoked from network); 31 Jan 2023 21:40:41 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 31 Jan 2023 21:40:41 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 2DA4042478; Wed, 1 Feb 2023 07:40:18 +1000 (AEST) Received: from nsstlmta18p.bpe.bigpond.com (nsstlmta18p.bpe.bigpond.com [203.38.21.18]) by minnie.tuhs.org (Postfix) with ESMTPS id D29E042477 for ; Wed, 1 Feb 2023 07:40:10 +1000 (AEST) Received: from smtp.telstra.com ([10.10.24.4]) by nsstlfep39p-svc.bpe.nexus.telstra.com.au with ESMTP id <20230131212744.BLJI5871.nsstlfep39p-svc.bpe.nexus.telstra.com.au@smtp.telstra.com> for ; Wed, 1 Feb 2023 08:27:44 +1100 X-RG-Spam: Unknown X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvhedrudefgedgudehtdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfupfevtfgpvffgnffuvffttedpqfgfvfenuceurghilhhouhhtmecugedttdenucenucfjughrpeffhffvufgjkfhffgggtgesthdttddttdervdenucfhrhhomhepffgrvhgvucfjohhrshhfrghllhcuoegurghvvgeshhhorhhsfhgrlhhlrdhorhhgqeenucggtffrrghtthgvrhhnpeekieetjeeuuefhfeeguedvudeifeevudfgvedtffekhfffjeekhfdutdetheethfenucfkphepuddutddrudeguddrudelfedrvdeffeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegrnhgvuhhrihhnrdhhohhrshhfrghllhdrohhrghdpihhnvghtpeduuddtrddugedurdduleefrddvfeefpdhmrghilhhfrhhomhepuggrvhgvsehhohhrshhfrghllhdrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehtuhhhshesthhuhhhsrdhorhhgpdhrvghvkffrpegtphgvqdduuddtqddugeduqdduleefqddvfeefrdhnshifrdgrshhprdhtvghlshhtrhgrrdhnvghtpdhgvghokffrpeetfgdpoffvtefjohhsthepnhhsshhtlhhrghdutdhpqdhsvhgt X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean X-RG-VS-CLASS: clean Received: from aneurin.horsfall.org (110.141.193.233) by smtp.telstra.com (5.8.812) id 6392A3500A072D81 for tuhs@tuhs.org; Wed, 1 Feb 2023 08:27:43 +1100 Received: from aneurin.horsfall.org (localhost [127.0.0.1]) by aneurin.horsfall.org (8.15.2/8.15.2) with ESMTP id 30VLRgDY082917 for ; Wed, 1 Feb 2023 08:27:42 +1100 (EST) (envelope-from dave@horsfall.org) Received: from localhost (dave@localhost) by aneurin.horsfall.org (8.15.2/8.15.2/Submit) with ESMTP id 30VLRgt5082914 for ; Wed, 1 Feb 2023 08:27:42 +1100 (EST) (envelope-from dave@horsfall.org) X-Authentication-Warning: aneurin.horsfall.org: dave owned process doing -bs Date: Wed, 1 Feb 2023 08:27:41 +1100 (EST) From: Dave Horsfall To: The Eunuchs Hysterical Society In-Reply-To: Message-ID: References: <202301300750.30U7oQTh013304@freefriends.org> <20230130150219.GD12306@mcvoy.com> <20230130152703.GE12306@mcvoy.com> <20230130154555.GF12306@mcvoy.com> User-Agent: Alpine 2.21.9999 (BSF 287 2018-06-16) X-GPG-Public-Key: http://www.horsfall.org/gpgkey.pub X-GPG-Fingerprint: 05B4 FFBC 0218 B438 66E0 587B EF46 7357 EF5E F58B X-Home-Page: http://www.horsfall.org/ X-Witty-Saying: "chmod 666 the_mode_of_the_beast" MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Message-ID-Hash: ZGNHUJNUDDUYRIXOPUGUPHI6GLZ6X3YX X-Message-ID-Hash: ZGNHUJNUDDUYRIXOPUGUPHI6GLZ6X3YX X-MailFrom: dave@horsfall.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tuhs.tuhs.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: FD 2 List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Mon, 30 Jan 2023, Steve Nickolas wrote: [...] > I've actually been bitten by compilers doing unexpectedly stupid things, > so I guard around them. I'll never merge two chars into a short with > > c=(a<<8)|b; I used to do just that to disambiguate commands that started with the same letter in a UT-200 driver that I (re)wrote. Of course, I was young and stupid back then... It's quite something to see things like: switch (cmd) { case 'AA': ... break; case 'AB': ... break; default: wtf(); /* no return */ } Horribly machine-dependent, but I knew the 11/40 and Ed 6 quite well. [...] > I'll never do if (a==b&&c==d), always if ((a==b)&&(c==d)). Indeed; I *always* use parentheses even if they are not necessary (for my benefit, at least). -- Dave