Filter for opDispatch?

Paul Backus snarwin at gmail.com
Sun May 16 03:14:26 UTC 2021


On Sunday, 16 May 2021 at 00:04:39 UTC, frame wrote:
> On Saturday, 15 May 2021 at 23:59:49 UTC, Paul Backus wrote:
>>
>> Does it work if you remove `protected` from the derived class?
>
> Yes, but why should the derived class not have access to it?

Possibly because you're accessing it from an `opDispatch` method 
defined in the base class. I'm not 100% sure how `protected` 
works in that case, but just from reading the spec it seems like 
it could be an issue.


More information about the Digitalmars-d-learn mailing list