Multiple return type from object factory possible?

deed none at none.none
Sat Jun 22 10:56:09 PDT 2013


>     auto o = getO("info3");
>     if (cast(Container)o != null) { ... }

Thanks Simen.
(Compiler requires !is instead of !=)


More information about the Digitalmars-d-learn mailing list