interface problem

Jacob Carlborg doob at
Sat Mar 6 05:57:54 PST 2010

On 3/6/10 13:39, Trass3r wrote:
> I got 2 classes which both (indirectly) inherit from a common base class and implement a certain interface I.
> Now I need to pass that interface to a function and need to call a function inherited from the base class  inside.
> Naturally that function is not present in the interface and thus can't be called, so how to solve that problem?

Cast the instance to the base class and call the method?

> Adding the function to the interface doesn't work. It doesn't recognize the inherited version and yields "not implemented"

More information about the Digitalmars-d-learn mailing list