Re: closure procs with the javascript backend

2020-05-21 Thread Araq
That's a bug in `dom.nim`, fix is in the works.

Re: closure procs with the javascript backend

2020-05-20 Thread dawkot
Did you try adding closure annotation the suspect procs yourself? If it works, you could create a pull request.

closure procs with the javascript backend

2020-05-20 Thread mildred
Hi, I would like to use Nim for javascript related work, and I wonder how I can use event handlers in Nim when the proc I want to register is a closure. Often, the event needs to access external data and gets the `{.closure.}` annotation, and I get the following error from the compiler: