It's comparable to how C++ does it: An object only needs the V-Table pointer if it can be inherited from. Now ... Nim doesn't use V-Tables so instead you inherit from RootObj to tell the compiler you need runtime type tags in the object. It's IMHO a slightly better design because interop between packages is easier when they all agree on a common base class.
- Why inherit RootObj? marks
- Re: Why inherit RootObj? treeform
- Re: Why inherit RootObj? c0ntribut0r
- Re: Why inherit RootObj? AyJayKay
- Re: Why inherit RootObj? reneha
- Re: Why inherit RootObj? Araq
- Re: Why inherit RootObj? reneha
- Re: Why inherit RootObj? solo989
- Re: Why inherit RootObj? Araq
