[Issue 8006] Implement proper in-place-modification for properties
https://issues.dlang.org/show_bug.cgi?id=8006 Iain Buclaw changed: What|Removed |Added Priority|P2 |P4 --
[Issue 8006] Implement proper in-place-modification for properties
https://issues.dlang.org/show_bug.cgi?id=8006 Mikechanged: What|Removed |Added See Also||https://issues.dlang.org/sh ||ow_bug.cgi?id=15231 --
[Issue 8006] Implement proper in-place-modification for properties
https://issues.dlang.org/show_bug.cgi?id=8006 Walter Brightchanged: What|Removed |Added See Also||https://issues.dlang.org/sh ||ow_bug.cgi?id=16187 --
[Issue 8006] Implement proper in-place-modification for properties
https://issues.dlang.org/show_bug.cgi?id=8006 --- Comment #6 from Mike--- An attempt at a partial implementation: https://github.com/dlang/dmd/pull/7079/files --
[Issue 8006] Implement proper in-place-modification for properties
https://issues.dlang.org/show_bug.cgi?id=8006 Mikechanged: What|Removed |Added CC||slavo5...@yahoo.com --
[Issue 8006] Implement proper in-place-modification for properties
https://issues.dlang.org/show_bug.cgi?id=8006 mikeychanged: What|Removed |Added CC||abc.mi...@googlemail.com --- Comment #5 from mikey --- As a beginner this is a source of some confusion for me. Ideally the implementation details of a property vs a member variable should be transparent to me as a user of a given object. class Test { private: int _val, _val2; public: @property int val() { return _val; } @property void val(int val) { _val = val; } @property auto ref val2() { return _val2; } } void main() { auto t = new Test; //t.val += 100; // BAD - not an lvalue t.val(t.val + 100); // probably preferable to misleading syntax t.val2 += 200; // OK - but inconsistent import std.stdio : writefln; writefln("val: %d, val2: %d", t.val, t.val2); } ~ --
[Issue 8006] Implement proper in-place-modification for properties
https://issues.dlang.org/show_bug.cgi?id=8006 greensunn...@gmail.com changed: What|Removed |Added CC||greensunn...@gmail.com --- Comment #4 from greensunn...@gmail.com --- Issue 16187 (bitmanip fields should be lvalues) depends on this. Has anyone worked on implementing this lowering on the DMD frontend? --
[Issue 8006] Implement proper in-place-modification for properties
https://issues.dlang.org/show_bug.cgi?id=8006 greensunn...@gmail.com changed: What|Removed |Added Blocks||16187 --
[Issue 8006] Implement proper in-place-modification for properties
http://d.puremagic.com/issues/show_bug.cgi?id=8006 Jacob Carlborg d...@me.com changed: What|Removed |Added CC||d...@me.com --- Comment #3 from Jacob Carlborg d...@me.com 2013-01-24 23:42:16 PST --- Same thing if you do something like this: foo.val.x = 3; Needs to be rewritten to: auto __tmp = foo.val; __tmp.x = 3; foo.val = __tmp; -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8006] Implement proper in-place-modification for properties
http://d.puremagic.com/issues/show_bug.cgi?id=8006 Jordan Miner jmin...@gmail.com changed: What|Removed |Added CC||jmin...@gmail.com --- Comment #2 from Jordan Miner jmin...@gmail.com 2012-05-15 18:40:33 PDT --- This bug might be a duplicate of bug 808, although @property didn't exist back then. This bug has a more detailed description. I would really like to see this implemented. Properties seem only half-implemented to me if they don't support +=, -=, etc. operators. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8006] Implement proper in-place-modification for properties
http://d.puremagic.com/issues/show_bug.cgi?id=8006 Stewart Gordon s...@iname.com changed: What|Removed |Added CC||wfunct...@hotmail.com --- Comment #1 from Stewart Gordon s...@iname.com 2012-05-07 04:06:21 PDT --- *** Issue 8056 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---