Using closure in function scope to make "real" private class members
forkit
forkit at gmail.com
Wed Jun 8 09:57:49 UTC 2022
On Wednesday, 8 June 2022 at 09:38:24 UTC, Ola Fosheim Grøstad
wrote:
> On Wednesday, 8 June 2022 at 09:34:09 UTC, forkit wrote:
>> Walter has his firm view. I have mine.
>
> Sure, your viewpoint would make sense for D3, but then there
> would be many such adjustments to make.
>
> To make all those adjustments in D2 with no breaking change
> would @lead @to @a @mess.
I still don't get it.
I'm not advocating for my 'perfect world view' for D.
just: private(this)
That is not a breaking change. It would purely opt-in. Everyone
gets what they want (except those who don't want any change).
More information about the Digitalmars-d
mailing list