Hi I'm trying to run a proc that uses generics. There will be a general update[T] proc for normal use, and a specific proc for any custom code I would want to add. eg update[Enemy] for any enemy specific code.
Here is a code example of what I mean: type EntGroup[T] = ref object items: seq[T] proc update[T](self: EntGroup[T]) = echo "general update loop" proc update(self: EntGroup[Enemy]) = ## << What to put here to call the `update[T]()` code? ## echo "enemy code" var eg = EntGroup[Enemy]() eg.update() # should output the following: # "general update loop" # "enemy code" Run Is such a thing possible?