Why is D unpopular
Mike Parker
aldacron at gmail.com
Mon Jun 13 09:05:43 UTC 2022
On Monday, 13 June 2022 at 08:49:18 UTC, bauss wrote:
> My argument for why it should work is that if you place the
> subclass within the same module then it works, so clearly it's
> just a matter of where the function was called, not where it
> resides.
I don't get why you expect it to work. If you declare `Bar`
outside of the module, then how could you access the private
members of `Foo` through a `Bar`? It works in the same module
because... private to the module.
More information about the Digitalmars-d
mailing list