another properties thread

Adam D. Ruppe destructionator at gmail.com
Thu Apr 22 02:41:13 UTC 2021


On Thursday, 22 April 2021 at 02:25:29 UTC, Moth wrote:
> this was an upset, but dealable - it was ugly and long-winded, 
> but i could work around the limitation by using manual getter 
> and setter methods.

The @property annotation does almost nothing, so you can still do 
properties without the annotation.

The only thing @property actually does is change 
`typeof(obj.prop)` afrom function over to the type it returns.

> i would much, *much* rather use @property than not.

Why? What exactly do you need it to do?

(I myself want property to be fixed but I have a specific list of 
cases why, so curious what you are thinking of...)


More information about the Digitalmars-d mailing list