About the Expressiveness of D

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Apr 2 23:49:23 PDT 2013


On 4/3/13, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
> If you have any private or protected functions

I meant private or package.

> One thing I noticed is that having unittests in separate files can
> catch issues with template mixins.

I wonder if there's a way to mitigate that problem with a language
feature. Perhaps marking the unittest as 'extern' would make the
unittest only have access to public symbols in the module.

That way you never get into the situation where testing something from
within a unittest seems to work, but completely forgetting that you're
calling a private or package function.


More information about the Digitalmars-d mailing list