K&R and lvalues (Re: Re: limitations of casts, ...)

Sam Kendall kendall at wjh12.UUCP
Wed Oct 31 08:22:46 AEST 1984


> > K&R 'defines' an lvalue as an 'expression referring to an object'.
> > and an object as a 'manipulable region of storage'. '(char *)x' is a
> > perfectly good lvalue: it refers to the object 'x' considered as
> > a pointer to a character.
> 
> K&R is not at all clear about lvalues.  That shows why we need a good
> standards document.

K&R is pretty clear about this one: it is not an lvalue.

	Sam Kendall	  {allegra,ihnp4,ima,amd}!wjh12!kendall
	Delft Consulting Corp.	    decvax!genrad!wjh12!kendall



More information about the Comp.lang.c mailing list