Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!eecae!netnews.upenn.edu!rutgers!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hp-ses!hpcuhb!hpcllla!hpclisp!hpclwjm!walter From: walter@hpclwjm.HP.COM (Walter Murray) Newsgroups: comp.std.c Subject: Re: is f().c legal? How about (&(f()))->c ? Message-ID: <12570006@hpclwjm.HP.COM> Date: 31 Jan 89 00:57:57 GMT References: <2648@vedge.UUCP> Organization: Hewlett-Packard Calif. Language Lab Lines: 17 > I got that info from Harbinson and Steele. I have the May Draft of ANSI, > but cant find the page where it mentions that. Can anyone point me to > the appropriate ANSI section number? > David Lai Section 3.3.3.2. Unary & requires an lvalue. Section 3.3.2.3. The . operator does not require an lvalue. If the left operand is an lvalue, the result is an lvalue. Especially, see section 3.3.2.3 of the Rationale. By the way, the HP-UX compiler for the Series 800, which is not derived from PCC, gets this right. Walter Murray HP, California Language Lab ----------