2 ms·
> assigned to lvalues, which are locations. lvalues aren't values.
by catnaroek 10y ago
> assigned to lvalues, which are locations.
lvalues aren't values.
- dragonwriter 10y ago> lvalues aren't values. lvalues are values in the same way that object references (not objects themselves) are values; perhaps more precisely, lvalues are values the same way that pointer values are values.
- catnaroek 10y agoAn object reference is totally an rvalue: you can't mutate the object reference, only the object it refers to. AFAICT, lvalues are more akin to objects themselves, in that they can be mutated.
- qwertyuiop924 10y ago...And here you are, completely demonstrating my point: Your defintion of "value" is not the same as the one in common usage: if you're going to go around using strange definitions of words we all know, at least tell us beforehand.