Taking address of properties
Robert
jfanatiker at gmx.at
Sun Feb 10 05:38:52 PST 2013
> How?! I mean yeah, you can return a pointer to a field, that is correct.
> But apart from that, which might get forbidden too for properties (I
> have to think about it first), what do you mean?
> >
I mean of course you can. Always. There are many ways:
- alias this
- some other function which returns the variable by ref/pointer
- make the field public
But the @property marked functions won't break it.
More information about the Digitalmars-d
mailing list