File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2177,7 +2177,11 @@ Expressions are divided into two main categories: _lvalues_ and _rvalues_.
21772177Likewise within each expression, sub-expressions may occur in _ lvalue context_ or _ rvalue context_ .
21782178The evaluation of an expression depends both on its own category and the context it occurs within.
21792179
2180- [ Path] ( #path-expressions ) , [ field] ( #field-expressions ) and [ index] ( #index-expressions ) expressions are lvalues.
2180+ An lvalue is an expression that represents a memory location. These
2181+ expressions are [ paths] ( #path-expressions ) (which refer to local
2182+ variables, function and method arguments, or static variables),
2183+ dereferences (` *expr ` ), [ indexing expressions] ( #index-expressions )
2184+ (` expr[expr] ` ), and [ field references] ( #field-expressions ) (` expr.f ` ).
21812185All other expressions are rvalues.
21822186
21832187The left operand of an [ assignment] ( #assignment-expressions ) ,
You can’t perform that action at this time.
0 commit comments