Poll: do you use @property semantics?

Max Samukha maxsamukha at gmail.com
Thu Sep 15 05:20:53 UTC 2022


On Wednesday, 14 September 2022 at 19:20:04 UTC, Rikki Cattermole 
wrote:
>
> So, who uses @property semantics?

How can we use it if it is not implemented?

```
struct S
{
     void opCall() {}
     void opAssign(S s) {};
}

@property ref S foo();
foo(); // doesn't do what's expected
foo = S(); // same

@property void delegate() foo();
foo(); // same

@property ref int foo();
foo++;
```

etc



More information about the Digitalmars-d mailing list