From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16286 invoked from network); 16 Nov 1998 14:32:09 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 16 Nov 1998 14:32:09 -0000 Received: from mailgw2.fhg.de (fhg.de [153.96.1.1]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id JAA23450 for ; Mon, 16 Nov 1998 09:32:07 -0500 Received: by mailgw2.fhg.de (fhg.de); Mon, 16 Nov 1998 15:31:56 +0100 (MET) X-ENV: (mailgw2.fhg.de) scr@iis.fhg.de -> axp-list@redhat.com.VIA-SMTP X-BULK-CHECK-2-981116.15.27.07: root@iis.iis.fhg.de [153.96.172.2] Received: by mailgw2.fhg.de (fhg.de) with ESMTP; Mon, 16 Nov 1998 15:19:51 +0100 (MET) from iis.fhg.de Received: by iis.fhg.de with SMTP; Mon, 16 Nov 1998 15:19:50 +0100 (MET) from sunserv02.iis.fhg.de Received: from ew003 by sunserv02.iis.fhg.de (SMI-8.6/SMI-SVR4) id PAA13319; Mon, 16 Nov 1998 15:19:49 +0100 Sender: scr@iis.fhg.de Message-ID: <365035A4.1CFBAE39@iis.fhg.de> Date: Mon, 16 Nov 1998 15:24:36 +0100 From: Stefan Schroepfer Organization: FHG-IIS X-Mailer: Mozilla 3.0 (X11; I; SunOS 4.1.3_U1 sun4m) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Any C++ on Alpha gfurus out there? References: <3650257A.15FB7483@iis.fhg.de> <19981116084516.A15882@xcski.com> 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