From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 3890 invoked from network); 25 Apr 2020 03:37:59 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with UTF8ESMTPZ; 25 Apr 2020 03:37:59 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 7E88F9C921; Sat, 25 Apr 2020 13:37:58 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 621939C83A; Sat, 25 Apr 2020 13:37:34 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 74FEC9C746; Sat, 25 Apr 2020 13:37:30 +1000 (AEST) Received: from viclamta24p.bpe.bigpond.com (viclamta24p.bpe.bigpond.com [203.38.21.88]) by minnie.tuhs.org (Postfix) with ESMTPS id 68A219C733 for ; Sat, 25 Apr 2020 13:37:29 +1000 (AEST) Received: from smtp.telstra.com ([10.10.26.4]) by viclafep24p-svc.bpe.nexus.telstra.com.au with ESMTP id <20200425033727.CMJA4170.viclafep24p-svc.bpe.nexus.telstra.com.au@smtp.telstra.com> for ; Sat, 25 Apr 2020 13:37:27 +1000 X-RG-Spam: Unknown X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeduhedrhedvgdejvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfupfevtfgpvffgnffuvffttedpqfgfvfenuceurghilhhouhhtmecugedttdenucenucfjughrpeffhffvufgjkfhffgggtgesmhdttdertderjeenucfhrhhomhepffgrvhgvucfjohhrshhfrghllhcuoegurghvvgeshhhorhhsfhgrlhhlrdhorhhgqeenucfkphepuddutddrudeguddrudelfedrvdeffeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegrnhgvuhhrihhnrdhhohhrshhfrghllhdrohhrghdpihhnvghtpeduuddtrddugedurdduleefrddvfeefpdhmrghilhhfrhhomhepoegurghvvgeshhhorhhsfhgrlhhlrdhorhhgqecuuefqffgjpeekuefkvffokffogfdprhgtphhtthhopeeothhuhhhssehtuhhhshdrohhrgheq 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.420) id 5E8A6D75039DC5C4 for tuhs@tuhs.org; Sat, 25 Apr 2020 13:37:27 +1000 Received: from aneurin.horsfall.org (localhost [127.0.0.1]) by aneurin.horsfall.org (8.15.2/8.15.2) with ESMTP id 03P3bPxN043171 for ; Sat, 25 Apr 2020 13:37:25 +1000 (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 03P3bOT3043168 for ; Sat, 25 Apr 2020 13:37:25 +1000 (EST) (envelope-from dave@horsfall.org) X-Authentication-Warning: aneurin.horsfall.org: dave owned process doing -bs Date: Sat, 25 Apr 2020 13:37:24 +1000 (EST) From: Dave Horsfall To: The Eunuchs Hysterical Society In-Reply-To: Message-ID: References: <6D6EFA0C-36C3-4225-A331-D1998A07C50A@gmail.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: multipart/mixed; boundary="1483753691-820276805-1587785845=:40007" Subject: Re: [TUHS] v7 K&R C X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1483753691-820276805-1587785845=:40007 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Sat, 25 Apr 2020, Rob Pike wrote: > The ability to call a function pointer fp with the syntax fp() rather > than (*fp)() came rather late, I think at Bjarne's suggestion or > example. Pretty sure it was not in v7 C, as you observe. I have never seen that syntax used (and I've been tooling around with Unix for decades). The variable "fp" in an argument list is a pointer to the function, not the function itself, so dereference it. I wouldn't put it past Stroustrup to have it in C++ though, as it pretty much has everything else in it. > Convenient though the shorthand may be, it always bothered me as > inconsistent and misleading. (I am pretty sure I used it sometimes > regardless.) Indeed... My principle is to write code as though the next person to maintain it is a psychopathic axe-murderer who knows where you live (or perhaps even yourself, a year later)... -- Dave --1483753691-820276805-1587785845=:40007--