@LeuGim thanks for your effort, sadly it is not really what I was hoping for. I 
was hoping it could be used as an inplace macro. This is what I mean:
    
    
    macro makeHelloWorld(): untyped =
      result = quote do:
        echo "Hello Wolrd!"
    
    makeHelloWolrd()
    
    

imagine a lot of macros like this. Each of them executed exacty once, and 
always right after definition. So I thought maybe the static block could 
simplify the code, and remove the need to always come up with new identifiers:
    
    
    static:
      result = quote do:
        echo "Hello World!"
    

but that is sadly this is not a simplification that can be applied.

Reply via email to