You can use [procCall](https://nim-lang.org/docs/system.html#procCall,untyped): 
    
    
    procCall toolMethod(gun, 5)
    

Bear in mind nim is not as OOP friendly as other popular languages such as 
Java/C#. Here you are not expected to use inheritance for everything.

By the way: 
[https://github.com/nim-lang/Nim/issues/4329](https://github.com/nim-lang/Nim/issues/4329)

Reply via email to