property returning a reference vs returning a value
cal
callumenator at gmail.com
Wed Jun 20 00:03:44 PDT 2012
On Wednesday, 20 June 2012 at 06:34:06 UTC, Jonathan M Davis
wrote:
> You can't overload on return type. The parameters need to be
> different, or the functions are going to conflict.
Ah, that explains it, thanks. I find ref properties useful for
making a member variable behave like it is public, but allowing
the struct to be aware when it's being accessed, at least that's
what I use it for.
More information about the Digitalmars-d-learn
mailing list