On Friday, 22 March 2019 at 13:58:48 UTC, number wrote:
I think it works in this scenario because private in D works on the module/file level.
By gar, you're right. I hadn't even looked into this because I assumed it was the same as PHP and C++.
Thanks for pointing this out.