I was trying to use methods in my classes as virtual procedures but got snagged when trying to call the same method on the base object.
I tried somthing like this (meta):
myMethod(this.BaseObject) as well as this.BaseObject.myMethod()
but it seemed that the methods still picked the highest implementation and not the one most closely matching the parameter type, which I could understand being a virtual proc and all. But I just couldnt find out looking through the manual if there was a way to force it to pick the base objects implementation?
I ended up changing them to procs which worked but removed the virtualness.
Hi!
Check my "Nim and OO" articles where I explore this in detail:
http://goran.krampe.se/category/nim
Basically, ability to call "super" methods will come later. Right now you need to use a refactoring trick.