[Issue 17729] dmd says cast expression is "not an lvalue", but it can be used as one in other contexts

2019-05-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17729 ag0aep6g changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 17729] dmd says cast expression is "not an lvalue", but it can be used as one in other contexts

2019-03-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17729 Andrei Alexandrescu changed: What|Removed |Added CC||and...@erdani.com

[Issue 17729] dmd says cast expression is "not an lvalue", but it can be used as one in other contexts

2019-03-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17729 ag0aep6g changed: What|Removed |Added See Also||https://issues.dlang.org/sh |

[Issue 17729] dmd says cast expression is "not an lvalue", but it can be used as one in other contexts

2018-09-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17729 --- Comment #3 from er.kr...@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

[Issue 17729] dmd says cast expression is "not an lvalue", but it can be used as one in other contexts

2018-09-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17729 --- Comment #2 from ag0aep6g --- (In reply to er.krali from comment #1) > I also can't understand why the workaround works at all, the result of > dereferencing a pointer should surely be a rvalue? > > Is that also a bug? Dereferencing a pointer

[Issue 17729] dmd says cast expression is "not an lvalue", but it can be used as one in other contexts

2018-09-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17729 er.kr...@gmail.com changed: What|Removed |Added CC||er.kr...@gmail.com --- Comment #1 from