[Issue 3008] Members of non-lvalues (rvalues) can be assigned to.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 27 09:44:56 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=3008

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #23 from RazvanN <razvan.nitu1305 at gmail.com> ---
Andrei recently made a PR to the spec to clarify the definition of
rvalues/lvalues, the result of which can be seen here [1]. It clearly states:

"Definition ("Lvalue"): [...]

a variable or the result of the DotIdentifier grammatical construct . (left
side may be missing) 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;"

Acoording to these rules, this bug report is invalid.

[1] https://dlang.org/spec/expression.html

--


More information about the Digitalmars-d-bugs mailing list