From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 195 invoked from network); 16 Nov 1998 14:51:47 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 16 Nov 1998 14:51:47 -0000 Received: from landsraad.net (caladan.arrakis.es [195.5.65.34]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id JAA24366 for ; Mon, 16 Nov 1998 09:51:42 -0500 Received: from dinamicmultimedia.es (id-12.arrakis.es [195.5.73.12]) by landsraad.net (8.9.1a/8.9.1) with ESMTP id PAA09534 for ; Mon, 16 Nov 1998 15:52:50 +0100 (MET) Message-ID: <36503B8C.14F0A420@dinamicmultimedia.es> Date: Mon, 16 Nov 1998 15:49:48 +0100 From: Leo X-Mailer: Mozilla 4.05 [en] (WinNT; I) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Any C++ on Alpha gfurus out there? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Paul Tomblin wrote: > > > > Quoting Stefan Schroepfer (scr@iis.fhg.de): > > > Brian E.W. Wood wrote: > > > > > > > > _wd * wd = (_wd *)m_menuFactoryItems[k].callback_action; > > > > > > [...] > > > - Why does one write such a counter-intuitive construct > > > even if it is a valid one? > > > > What's so hard to understand? _wd is obviously a class or a typedef. wd is a > > pointer to that class. m_menuFactoryItems is an array of structs or class > > instances, which has a data field (or method) of type (pointer to _wd) called > > callback_action. > Thanks for the reply. I simply overlooked that there's an > instantiation of a (_wd *) in this line and got confused > about this presumed dammned _product_ on the left side of > the assignment (it's not my day today). > > scr Oops... that's true, the l-value is the wd variable, of course. Sorry, Leo