Re: template does not create methods?

2019-02-16 Thread Udiknedormin
Your builder doesn't return int, it returns some proc returning int. As simple as that.

Re: template does not create methods?

2019-02-16 Thread teras
That's it. Thank you!

Re: template does not create methods?

2019-02-16 Thread mashingan
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 ;)

template does not create methods?

2019-02-16 Thread teras
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