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

zjh fqbqrr at 163.com
Sat Jun 4 14:40:10 UTC 2022


On Saturday, 4 June 2022 at 14:23:42 UTC, Commander Zot wrote:

> because you should use interfaces anyway. a class should be an 
> implementation detail.

For me, it would be better ,if I could encapsulate at `class 
level`.In any case, I don't want the `outside` to affect `my 
class inside`.



More information about the Digitalmars-d mailing list