According to the manual https://nim-lang.org/docs/system.html#RootObj
"Objects should inherit from RootObj or one of its descendants."
Why is this?
The next sentence is:
"However, objects that have no ancestor are also allowed."
I've been doing this without problems.
It probably should say "Object Oriented Programming style Classes should inherit from RootObj or one of its descendants."
This wouldn't help really, since it is creating the same confusion. (At least for me.) I still don't understand why one should do it. What do I gain/loose putting it there or not?
It's not technically required because you can do this this instead.
type
Hello {.inheritable.} = object
Hello2 = object of Hello