www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - continuation - Using templates to switch interface implementation class

Sorry -- too fast ENTER :-) - please see my previous post for beginning...


module instancefactory;
import instanceconfig;

class ViewFactory(I) {
        mixin getInstance!(I);


Problem is that when I add more definition to instanceconfig.d my solution
doesn't work.

How to:

1. Make my solution work, or
2. Make solution which will have similar architecture in D

Marcin Kuszczak
May 21 2006