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

zjh fqbqrr at 163.com
Wed Jun 8 09:59:57 UTC 2022


On Wednesday, 8 June 2022 at 09:55:00 UTC, bauss wrote:

> ```d
> class Foo
> {
>   private int a; // private to module
>   private class int b; // private to class
> }
> ```

Right,No damage at all!



More information about the Digitalmars-d mailing list