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 3620 invoked from network); 27 Apr 2020 17:46:35 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with UTF8ESMTPZ; 27 Apr 2020 17:46:35 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 209CE9C96B; Tue, 28 Apr 2020 03:46:32 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id B30EB9B92D; Tue, 28 Apr 2020 03:45:58 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id CAC919B92D; Tue, 28 Apr 2020 03:45:54 +1000 (AEST) Received: from mercury.lcs.mit.edu (mercury.lcs.mit.edu [18.26.0.122]) by minnie.tuhs.org (Postfix) with ESMTPS id 62DD094895 for ; Tue, 28 Apr 2020 03:45:54 +1000 (AEST) Received: by mercury.lcs.mit.edu (Postfix, from userid 11178) id 2801618C09B; Mon, 27 Apr 2020 13:45:53 -0400 (EDT) To: tuhs@tuhs.org Message-Id: <20200427174553.2801618C09B@mercury.lcs.mit.edu> Date: Mon, 27 Apr 2020 13:45:53 -0400 (EDT) From: jnc@mercury.lcs.mit.edu (Noel Chiappa) 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: , Cc: jnc@mercury.lcs.mit.edu Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" > From: Derek Fawcus > I think he means something like: > (*((*((*((*f)()->g))()->h))()->i))() So I've been confused by this thread, and I'm hoping someone can deconfuse me - but I think I may have figured it out. What's confusing me is that in C, the -> operator is followed by "an identifier [which] designates a member of a structure or union object" (I checked the spec to make sure my memory hadn't dropped any bits) - but g, h above are arguments; so I couldn't figure out what was going on. I think what may have happened is that initially the discussion was about C ("Pretty sure it was not in v7 C"), but then it switched to C++ - with which I'm not familiar, hence my confusion - without explicitly indicating that change (although the reference to Bjarne Stroustrup should been a clue). (And that's why I thought "f()->g()->h()->i()" was ad hoc notation for "calls f(), then calls g()".) Am I tracking now? Noel