Liste des Groupes | Revenir à cl c |
Bart <bc@freeuk.com> writes:
'1' isn't as good an example; I wanted something that necessarily has to be in a transient location like a register. Constants can exist as immediate fields in instructions, or in actual memory (eg. for floats).Someone objects that you can't in general apply & to arbitrary, unnamed,or even just 1.
transient, intermediate values such as 'a + 1'.
He took the symmetry I was claiming for assignment, and created an asymmetric counter-example where the dereferencing part of the LHS was moved into a function, necessitating the creation of a discrete reference for the LHS.I showed how you could do that using anonymous compound literals whichBecause you called it a reference to a+1. The reference is to an
avoids having to create an explicit named temporary which in standard C
would need to be outside of that assignment call.
>
But you apparently have a problem it.
object.
I don't know if you were deliberately twisting the term because you are
now 100% committed to some false symmetry in assignments, or whether you
are just very loose in your use of terms, but rvalue expressions (C does
not really use the term, but it's better than non-lvalue expressions)
can't have "references" to them. That was all that Waldek Hebisch was
saying. Did you think for a second that he did not know that if you put
an int value into an object you can take the pointer to that object?
Les messages affichés proviennent d'usenet.