void(*trigger)(int)
In nim I have an object type
node = object
blah: int
and I'd like it to also have the field that would take in one such function when initialized. How could I do this? Thank you, I am new to nim but proficient in C Mirinode.trigger(int)
from the function trigger(self: node, arg: int)