Re: [Jprogramming] callbacks

2020-11-30 Thread emacstheviking
I figured as much Bill, at least its not assembler code on a board! :D I'm happy anyway... I have a working SDL2 wrapper that is providing some good stuff, I am currently wrapping the functions from the SDL2_fgx library as it has anti-aliased rendering functions which is initially why I went for y

Re: [Jprogramming] callbacks

2020-11-30 Thread bill lam
I don't think cdcb can help you to implement event loop or similar functions. cdcb is very restricted. the callback must happen within the context of the call that passed the callback address. Theoretically external codes can invoke the callback, but since J is single threaded and has no event loop

[Jprogramming] callbacks

2020-11-30 Thread emacstheviking
I found the Lab on cdcallback and followed it, I did the qsort version and it all works as described but applying it to my SDL application I got this as soon as the timer kicks in, I tried different timer values to ensure it was related: timerid:1 |stack error: sdl_renderpresent | sdl_render