Using closure in function scope to make "real" private class members
Dom Disc
dominikus at scherkl.de
Mon Jun 6 11:54:26 UTC 2022
On Monday, 6 June 2022 at 04:34:23 UTC, forkit wrote:
> My argument is clear. It would be 'nice to have' 'an option'
> for there to be a genuine private component of a class. Not
> pseudo 'private', but genuine @private.
I would be ok with this, if it comes WITHOUT friends. Else it
would destroy encapsulation like it does in C++.
And friends wouldn't be necessary, as we have the real D
encapsulation as fallback, so why not. It's useless, but if you
want it this urgently...
More information about the Digitalmars-d
mailing list