File tree 1 file changed +5
-1
lines changed
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_.
2177
2177
Likewise within each expression, sub-expressions may occur in _ lvalue context_ or _ rvalue context_ .
2178
2178
The evaluation of an expression depends both on its own category and the context it occurs within.
2179
2179
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 ` ).
2181
2185
All other expressions are rvalues.
2182
2186
2183
2187
The left operand of an [ assignment] ( #assignment-expressions ) ,
You can’t perform that action at this time.
0 commit comments