On Tuesday, 5 July 2016 at 10:52:10 UTC, zodd wrote:
Property functions are used wrong by a compiler when it needs to get and set a value at the same time:[...]
Try @property ref int value() { return value_; }
Satoshi via Digitalmars-d-learn Tue, 05 Jul 2016 04:06:12 -0700
On Tuesday, 5 July 2016 at 10:52:10 UTC, zodd wrote:
Property functions are used wrong by a compiler when it needs to get and set a value at the same time:[...]
Try @property ref int value() { return value_; }