Filter for opDispatch?

Mike Parker aldacron at gmail.com
Sun May 16 03:19:04 UTC 2021


On Sunday, 16 May 2021 at 00:04:39 UTC, frame wrote:

>
> Yes, but why should the derived class not have access to it?

I don't think that's your problem. From the template docs:

> _TemplateInstances_ are always instantiated in the scope of 
> where the _TemplateDeclaration_ is declared...

Your `opDispatch` templates are instantiated in the scope of 
`Base`, from which `_s` is not accessible when it's protected.


More information about the Digitalmars-d-learn mailing list