Casting from interface to real class?

Bill Baxter dnewsgroup at billbaxter.com
Sun Jan 20 21:18:52 PST 2008


Is it possible to do a dynamic cast from an interface to a real class?

SomeClass k = cast(SomeClass)anInterface;

will that succeed if anInterface started life as a SomeClass?

--bb


More information about the Digitalmars-d-learn mailing list