Re: Adding function to object

2020-01-23 Thread kcvinu
Yes, That's the possible way. :)

Adding function to object

2020-01-23 Thread Miri
I have a function typedef (porting from C) which is void(*trigger)(int) Run In nim I have an object type node = object blah: int Run and I'd like it to also have the field that would take in one such function when initializ

Re: Adding function to object

2020-01-23 Thread Miri
I believe the uniform function calling idea might work abstractly. i.e. node.trigger(int) Run from the function trigger(self: node, arg: int) Run