Re: Adding function to object
Yes, That's the possible way. :)
Adding function to object
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
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