On 2012-05-07 22:16, Michael wrote:
import std.stdio;int pro = 1; @property ref auto prop() { return pro; } @property void prop(int value) { pro = value; } void main() { writeln(prop |= 2); }
You're bypassing the getter. -- /Jacob Carlborg
On 2012-05-07 22:16, Michael wrote:
import std.stdio;int pro = 1; @property ref auto prop() { return pro; } @property void prop(int value) { pro = value; } void main() { writeln(prop |= 2); }
You're bypassing the getter. -- /Jacob Carlborg