You create can a table 
([https://nim-lang.org/docs/tables.html](https://nim-lang.org/docs/tables.html))
 of procs of the _same_ type. It doesn't make much sense to have a table of 
_different_ types in a statically typed language, since the argument types and 
the return type will have to be the same when you call whatever proc comes out 
of the table. But you could have a table of object variants where the kind says 
what sort of proc it contains, and then switch on the kind of object to get at 
the procs of various types.

But again, it sounds like you're trying to treat Nim as if it were a 
dynamically typed language, but it's not. Rather than having a table of procs, 
it would be better to make your procs be methods of a type hierarchy, or to 
have an object variant where you call the different procs based on the variant 
kind.

And again, _without examples_ , it's harder to help.

Reply via email to