Re: lib\pure\asyncmacro.nim(43, 27) Error: attempting to call undeclared routine: 'callback='

2018-01-22 Thread monster
@dom96 I tried your idea, and it didn't work. Then I changed the forward declaration to be a "normal" proc, and implemented it lower down to just delegate to the async proc (asyncCheck sendMsgExternally(...)), and it didn't work either. I'll try to build an example now. If it's an async macro

Re: lib\pure\asyncmacro.nim(43, 27) Error: attempting to call undeclared routine: 'callback='

2018-01-22 Thread dom96
Try changing the forward declaration by replacing the async pragma with `: Future[void]`. Seems like an async macro bug.

Re: lib\pure\asyncmacro.nim(43, 27) Error: attempting to call undeclared routine: 'callback='

2018-01-21 Thread mashingan
Could you give some simplified example that can be ran? From the error message it's the line `next.callback = (proc() {.closure, gcsafe.})(cb0)` that gives the error. Very likely the next object type doesn't have any defined proc with that or you missed some module (which I don't know which)

lib\pure\asyncmacro.nim(43, 27) Error: attempting to call undeclared routine: 'callback='

2018-01-21 Thread monster
ered: bool): void = # ... let size = uint32(sizeof(Msg[T])) asyncCheck sendMsgExternally(q, m, size) and on that last line, I am getting this error: lib\pure\asyncmacro.nim(43, 27) Error: attempting to call undeclared routine: 'callback=' T