[Issue 22200] it is not specified that `$` yields a rvalue

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 19 10:45:09 UTC 2021


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

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

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

--- Comment #1 from RazvanN <razvan.nitu1305 at 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

--


More information about the Digitalmars-d-bugs mailing list