I am trying the tutorial programs for CPS using nim 2.0.8.
1. Program cpstut1.nim runs ok, but if if put the global code in proc main, I
get the error
/home/doug/nim-tdt/cps/hello2.nim(18) hello2
/home/doug/nim-tdt/cps/hello2.nim(15) main
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Segmentation fault (core dumped)
Error: execution of an external program failed:
'/home/doug/nim-tdt/cps/hello2'
Run
It runs ok on 1.6.12.
2\. Program cpstut2.nim gives the error:
/home/doug/nim-tdt/cps/coopSked.nim(33) main
/home/doug/nim-tdt/cps/coopSked.nim(15) runWork
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Segmentation fault (core dumped)
Error: execution of an external program failed:
'/home/doug/nim-tdt/cps/coopSked'
Run
The program runs ok on nim 1.6.12