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...

-------------
instancefactor.d

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

Regards
Marcin Kuszczak
(Aarti_pl)
May 21 2006