Thread overview
[Issue 22200] it is not specified that `$` yields a rvalue
Aug 11, 2021
Basile-z
Aug 19, 2021
RazvanN
Aug 19, 2021
Basile-z
August 11, 2021
https://issues.dlang.org/show_bug.cgi?id=22200

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|it is not specified that    |it is not specified that
                   |`$` yield a rvalue          |`$` yields a rvalue

--
August 19, 2021
https://issues.dlang.org/show_bug.cgi?id=22200

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

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

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
You do have the 5th definition from [1] which specifies what an lvalue is. Rvalues are defined as "if it's not an lvalue, then it's an rvalue". `$` does not appear in the list of lvalues, therefore, I would say that the spec is accurate.

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

--
August 19, 2021
https://issues.dlang.org/show_bug.cgi?id=22200

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Basile-z <b2.temp@gmx.com> ---
okay.

--