Using closure in function scope to make "real" private class members
zjh
fqbqrr at 163.com
Tue Jun 7 09:22:13 UTC 2022
On Tuesday, 7 June 2022 at 09:17:17 UTC, Ola Fosheim Grøstad
wrote:
>
> Pick up a book on language design, it is fun to read about, and
> you seem interested! Then we can talk more. (Without basic
> knowledge about language design principles it is easy to reach
> conclusion that has proven to be not so good).
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`.
More information about the Digitalmars-d
mailing list