`type Enemy = ref object EntGroup[T] = ref object of RootObj items: seq[T] 
EnemyEntGroup = ref object of EntGroup[Enemy] method update[T](self: 
EntGroup[T]) = echo "general update loop" method update(self: EnemyEntGroup) = 
procCall update(EntGroup[Enemy](self)) ## << What to put here to call the 
`update[T]()` code? ## echo "enemy code" var eg = EnemyEntGroup() eg.update() # 
should output the following: # "general update loop" # "enemy code" `

Run

Reply via email to