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

Walter Bright newshound2 at digitalmars.com
Wed Jun 8 20:35:30 UTC 2022


On 6/8/2022 1:23 AM, Max Samukha wrote:
> Why is it less of an abomination?

Because "friend" classes are a mess. They can be spread all over your code.

Modules are physically co-located in the same file, making them easy to manage.


More information about the Digitalmars-d mailing list