From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 8394 invoked from network); 16 Nov 1998 13:45:11 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 16 Nov 1998 13:45:11 -0000 Received: from xcski.com (d185d1c51.rochester.rr.com [24.93.28.81]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id IAA22026 for ; Mon, 16 Nov 1998 08:45:10 -0500 Received: (from ptomblin@localhost) by xcski.com (8.8.7/8.8.7) id IAA16040; Mon, 16 Nov 1998 08:45:17 -0500 Message-ID: <19981116084516.A15882@xcski.com> Date: Mon, 16 Nov 1998 08:45:16 -0500 From: Paul Tomblin To: axp-list@redhat.com Subject: Re: Any C++ on Alpha gfurus out there? References: <3650257A.15FB7483@iis.fhg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1 In-Reply-To: <3650257A.15FB7483@iis.fhg.de>; from Stefan Schroepfer on Mon, Nov 16, 1998 at 02:15:38PM +0100 Quoting Stefan Schroepfer (scr@iis.fhg.de): > Brian E.W. Wood wrote: > > > > _wd * wd = (_wd *)m_menuFactoryItems[k].callback_action; > > I'm definitely not a C++ guru, but please can someone > explain me > - Where is the l-value in that line? For what concept will > I have to search in Stroustroup (after I got mine back)? > - 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. If you find this counter-intuitive, you should stick to simple languages like VB. -- "Linux's homebase is currently commodity network and server infrastructure. By folding extended functionality ... into today's commodity services, we raise the bar & change the rules of the game." - Microsoft leaks their strategy for monopolizing the Internet and the desktop.