Properties don't work as expected

Satoshi via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 5 04:02:11 PDT 2016


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_;
     }


More information about the Digitalmars-d-learn mailing list