Interface factory

BCS ao at pathlink.com
Tue Aug 14 08:56:03 PDT 2007


Reply to luke,

> Hi everybody
> 
> auto factory = &Factory;
> auto ifactory = cast(FactoryType)factory;

this is the issue here, an interface isn't quite the same as object reference. 
having a function that returns an object reference cast to a interface returning 
function doesn't work.




More information about the Digitalmars-d-learn mailing list