I know Nim has support for [static 
blocks](http://nim-lang.org/docs/manual.html#statements-and-expressions-static-statement-expression),
 but I do not know what they can be used for, except from printing hello world 
at compile time, like it is written in the example. I was hoping I could create 
some code in them, but I do not know where to put the ast that I generate:
    
    
    import macros
    
    static:
      let ast = quote do:
        echo "hello world"
      
      # what can I do with ast now, except from discarding it?
    

Is it possible to make the static block evaluate to echo "hello world", that 
then gets evaluated at runtime again?

Reply via email to