How a class can know the current reference of itself?

Mike Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Aug 4 03:12:59 PDT 2017


On Friday, 4 August 2017 at 09:58:34 UTC, Mike Parker wrote:

> Also, class references are *already* references, so you don't 
> need to declare the function parameters as ref. Finally, 
> although this is not an error, @property has no effect on 
> member variables. It only applies to member functions. Also, 
> you never assign a value to myProperty, so even when the errors 
> are fixed nothing is printed.
>

Actually, in case I gave the wrong impression, @property can be 
applied to any function, not just member functions.


More information about the Digitalmars-d-learn mailing list