Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Lvalues and casts Message-ID: <1989May23.225818.9602@utzoo.uucp> Organization: U of Toronto Zoology References: <847@tub.UUCP> Date: Tue, 23 May 89 22:58:18 GMT In article <847@tub.UUCP> net@tub.UUCP (Oliver Laumann) writes: > (int *)cp = ip; > >The PCC, however, says "illegal lvalue in assignment". Is this legal >C, i.e. is the result of a cast really an lvalue? No. Many compilers have accepted it, historically, but it has never been legal C and it is not legal ANSI C. -- Van Allen, adj: pertaining to | Henry Spencer at U of Toronto Zoology deadly hazards to spaceflight. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu