[Issue 17729] dmd says cast expression is "not an lvalue", but it can be used as one in other contexts
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 19 16:45:52 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=17729
--- Comment #3 from er.krali at gmail.com ---
(In reply to ag0aep6g from comment #2)
> Dereferencing a pointer gives an lvalue. If it gave an rvalue, pointers
> would be pretty useless. You couldn't assign through them.
>
> If you disagree or have more questions on this, I'd suggest making a thread
> on D.learn [1]. We're going off topic here.
>
>
> [1] https://forum.dlang.org/group/learn
Sure, now that I think about it, it seems indeed obvious, sorry for the OT.
--
More information about the Digitalmars-d-bugs
mailing list