Using closure in function scope to make "real" private class members

zjh fqbqrr at 163.com
Tue Jun 7 09:31:20 UTC 2022


On Tuesday, 7 June 2022 at 09:22:13 UTC, zjh wrote:

> What I care about is that the code will not `inadvertently` 
> destroy `my class code` .
> This is the meaning of `encapsulation` .
> I don't care about other `designs`.

For me, `'minimum encapsulation'` is a matter of `principle` and 
cannot be changed!
But `'d'` does not encourage `'minimum encapsulation'`!
Then you talk with me about `designing language`?





More information about the Digitalmars-d mailing list