Poll: do you use @property semantics?

Dom DiSc dominikus at scherkl.de
Mon Sep 26 19:10:49 UTC 2022


On Monday, 26 September 2022 at 18:51:41 UTC, Ali Çehreli wrote:
> On 9/26/22 11:50, Dom DiSc wrote:
>
> > if x is a property
> > (having a getter and a setter), ++x should work
>
> That came up a couple of times on this thread.
>
> Sounds easy to my ears. Is there a blocker for the 
> implementation?
>
> Ali

I don't think so. Would be an easy lowering.
Forbidding to take the address is more controversial, but I don't 
understand why. It would be ambiguous (should it return a 
value-pointer or a function-pointer?). If you want something you 
can take the address of, make it a function or a value, not a 
property.


More information about the Digitalmars-d mailing list