Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 1,886 of 2,753    |
|    Eric Sosman to Marc van Lieshout    |
|    Re: Writing a C Compiler: lvalues    |
|    17 May 10 09:00:28    |
      XPost: comp.lang.c       From: esosman@ieee.org              On 5/16/2010 4:20 PM, Marc van Lieshout wrote:       >       > An lvalue is an expression that evaluates to an address, so it *can* be       > used on the left hand side of an assignment.               That won't quite do. Here are two counter-examples, one an       expression that evaluates to an address but is not an lvalue:               malloc(42)              ... and one an lvalue that cannot possibly involve an address:               register int x;        x = 42;              An lvalue (we're talking C here, right?) "is an expression with an       object type or an incomplete type other than void" (6.3.2.1p1).              --       Eric Sosman       esosman@ieee.org              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca