Maybe attempt #1 when you make `getValue` a `.dirty` template with a `when not declared` check to prevent multiple declarations of the thread var. Seems a bad hack though.
- Is there a way to create a Java-style thread-local in Nim? monster
- Re: Is there a way to create a Java-style thread-local in Nim... Araq