Hi
I need a hint.
Provided I have such construction
type Component = ref object of RootObj
type Entity = ref object
components = seq[Component]
method update(c: Component) = discard
Then, I have components, like:
type Fighter = ref object of Component
method update(c: Fighter) = discard
Finally
for c in entity.components:
c.update()
So it is quite common pattern. Collection of objects with common interface on
which you perform some action. How can I preserve such functionality avoiding
using methods (as I have heard core team do not like them).