Interfaces and Unit testing

Jesse Phillips jessekphillips+D at gmail.com
Fri Feb 18 08:56:09 PST 2011


As mentioned by Steven there are other ways to this without Interfaces. Templates are one very nice way and you may also find:

AutoImplements
BlackHole
WhiteHole

http://digitalmars.com/d/2.0/phobos/std_typecons.html#AutoImplement

Useful. I thought there was also going to be something that would take a given class and derive it from a base class to assume the type. But I guess that isn't in Phobos.


More information about the Digitalmars-d mailing list