[Issue 11920] Rvalue aggregate contains lvalues
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 15 14:34:06 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=11920
Basile-z <b2.temp at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |b2.temp at gmx.com
--- Comment #8 from Basile-z <b2.temp at gmx.com> ---
It's actually specified to be a lvalue:
> The following expressions, and no others, are called lvalue expressions or lvalues:
>
> [...]
>
> the result of the . PostfixExpression or Module Scope Operator when the rightmost side of the dot is a variable, field (direct or static), function name, or invocation of a function that returns by reference;
https://dlang.org/spec/expression.html#.define-lvalue
--
More information about the Digitalmars-d-bugs
mailing list