re: <https://forum.nim-lang.org/t/7945> maybe there's a better way but my answer required that a template be expanded at global scope, in order to declare a global.
yes, `.global` might be an answer for that problem, but new question: i know we have `isMainModule`, which is true when in the main compilation unit, but is there anything that could detect whether something is at global scope or not?