Your builder doesn't return int, it returns some proc returning int. As simple
as that.
That's it. Thank you!
Change the return template from `int` to `untyped` . I usually think `untyped`
as `unchecked` for easy understanding but let's wait for other to explain
better ;)
Again, please excuse my ignorance, nim newbie here!
I am trying to understand why this code does not work. Maybe I'm too much
spoilt of #define under C :) So, is this just a hard language restriction or am
I missing something?
type
Base = ref object of RootObj
Child = r