🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5689

Re: is f().c legal? How about (&(f()))->c ?

#5689
From: Walter Murray
Date: Tue, 31 Jan 1989 00:57
17 lines
1055 bytes
>    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
----------
Technical Details
Message-ID: <12570006@hpclwjm.HP.COM>
Path: arc1-ca.pugleaf.net!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
References: <2648@vedge.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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