Thanks for the responses guys.

Araq: Thanks. Sorry, I had proc in my example but I meant method. I basically 
want to have a common set of methods that can be shared among my child types 
and want to know some good ways to achieve this in nim.

Arrrrrrrrr: Thanks for the suggestion. That works although I still end up 
having to cast it as a tool - not really a problem, I was just hoping there was 
a way to avoid casting / be less verbose. I am interested in knowing how to do 
this in a nim, non-OOP way.

Reply via email to