Is it possible to "overload" based on visibility?

60rntogo 60rntogo at
Wed Sep 23 19:51:43 UTC 2020

On Wednesday, 23 September 2020 at 19:26:43 UTC, aliak wrote:
> Yeah, you can make a property setter:
> private void x(int newValue) { _x = newValue }

I'm aware of this, but it does not achieve what I asked for. It 
only allows me to assign to _x, it doesn't give me a reference to 
x, so I cannot use it with say += or any other function that 
takes int by mutable reference.

More information about the Digitalmars-d-learn mailing list