Why is D unpopular
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Mon Jun 13 10:11:49 UTC 2022
On Monday, 13 June 2022 at 10:03:59 UTC, Ola Fosheim Grøstad
wrote:
> On Monday, 13 June 2022 at 09:34:46 UTC, Mike Parker wrote:
>> No, it does not follow in this case. A subclass does not have
>> access to the private members of the superclass in D unless
>> they are declared in the same module. So what that code is
>> doing is saying, "Hey Bar, give me this field that you don't
>> have access to."
>
> It wasn't the subclass that tried to access, it was the owner
> of the subclass, the module.
Typo: "it was the owner of the *super class*, the module."
More information about the Digitalmars-d
mailing list