from Wiktionary, Creative Commons Attribution/Share-Alike License

  • n. A value that can be treated as an address or storage location.


l +‎ value, where l stands for left-hand side (of an assignment). (Wiktionary)


  • The expression "meow" is a string literal, and it is an lvalue.

    Site Home

  • In either case, we set the receiver (lvalue) to a known articles

  • 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

  • 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.

    Random feeds from

  • The default 'is readonly' of parameters applies only to the lvalue not the referenced object.

    Random feeds from

  • But I'm not sure what S06 means with "can be converted to an lvalue" in the description of the 'is rw' parameter trait.

    Random feeds from

  • 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.

    Random feeds from

  • Though I suppose an array of shape (*; *) as an lvalue might be a constraint allowing assignment only of another 2D array?

    Random feeds from

  • : Though I suppose an array of shape (*; *) as an lvalue might be a

    Random feeds from

  • 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.

    Random feeds from


Log in or sign up to get involved in the conversation. It's quick and easy.