Definitions
from Wiktionary, Creative Commons Attribution/Share-Alike License.
- noun computing, programming A value that can be treated as an
address or storage location.
Etymologies
from Wiktionary, Creative Commons Attribution/Share-Alike License
Support
Help support Wordnik (and make this page ad-free) by adopting the word lvalue.
Examples
-
The expression "meow" is a string literal, and it is an lvalue.
Site Home vcblog 2011
-
In either case, we set the receiver (lvalue) to a known
-
: Though I suppose an array of shape (*; *) as an lvalue might be a
-
The default 'is readonly' of parameters applies only to the lvalue not the referenced object.
-
But last year, in discussing it here, the lesson was that this is the point of having both rw and ref: the former demands an lvalue, the latter does not.
-
Though I suppose an array of shape (*; *) as an lvalue might be a constraint allowing assignment only of another 2D array?
-
As for what happens in the latter case under various conditions .... some people might expect a soft conversion to an assignable lvalue that just gets lost and doesn't actually affect the caller.
-
But I'm not sure what S06 means with "can be converted to an lvalue" in the description of the 'is rw' parameter trait.
-
If an attempt is made to modify an object defined with a const-qualified type through use of an lvalue with non-const-qualified type, the behavior is undefined.
LXer Linux News 2009
-
Most languages that have a pass-by-ref mode or equivalent do in fact demand that the caller supply an lvalue, if you declare the functions intent to modify the caller's variable like that.
Comments
Log in or sign up to get involved in the conversation. It's quick and easy.