2011/7/12 Kagamin <s...@here.lot>: > You want an IOC container like Unity? exactly > And you want the interface-to-class mapping to be configurable externally > rather than version out these classes directly in source? > like > version(UseGL) > { > static import wrappers.gl; > alias wrappers.gl.WindowImpl Window; > } > else version(UseWhat) > { > static import wrappers.what; > alias wrappers.what.WindowImpl Window; > } > container.register!(IWindow,Window)(); > > client: > > IWindow myWindow=container.resolve!(IWindow)(); > that's right :)
- Centralizable configured compile-time class instantiati... shd
- Re: Centralizable configured compile-time class in... Jesse Phillips
- Re: Centralizable configured compile-time clas... shd
- Re: Centralizable configured compile-time clas... Kagamin
- Re: Centralizable configured compile-time ... shd
- Re: Centralizable configured compile-time ... Kagamin
- Re: Centralizable configured compile-time clas... Jesse Phillips
- Re: Centralizable configured compile-time clas... Jesse Phillips
- Centralizable configured compile-time class instan... Mariusz Gliwiński