You can convert before calling: type Animal = ref object of RootObj Dog = ref object of Animal proc cry(x: Animal) {.base.} = echo "Foobar" proc cry(x: Dog) = echo "Bark" let x = Dog() x.cry x.Animal.cry Run
- How to call a proc of Base class from a derived class ? kcvinu
- Re: How to call a proc of Base class from a derived c... jlp765
- Re: How to call a proc of Base class from a deriv... Stefan_Salewski
- Re: How to call a proc of Base class from a d... mratsim