showPage calls indeed a global variable. Must I remove all global vars to move to 2.0? In nim 1.6.14 the same issue is just a warning. It is a major rewrite to remove all globals.
Is there a way to disable that stopping-error. Maybe a compiler-option or pragma? Or must I stay in 1.x if i dont want to remove the globals. Is it necessary to force users to reprogram their apps if they dont intend to implement multi-threading, or is there some other option? Or is it an ORC-thing?
Thanks in advance.
you can use '{.gcsafe.}' block:
{.gcsafe.}:
...
# your code
...
Thanks for all solutions!
{.gcsafe.} must apparently be implemented per function..
The app compiled with --threadAnalysis:off Crude but effective. Strangely enough with four threads now, but i am happy (for now) :-)
--threads:off compiles with one thread...
Then I can slowly clean it up. It is an older app; then i didnt know globals are not recommended...