Just a quick question, I have been looking for where the static macro is defined so I can look at how it is implemented does anyone have an idea of where that would be?
Static is not a macro, it's a language feature, so it will be implemented in the compiler, not the standard library. evalStaticExpr/Stmt in compiler/vm.nim sound reasonable.