Well... the template is the right thing to do but without closure magic --- 
just use a block:
    
    
    template scope(code): auto =
      block:
        code
    
    let a = scope:
      echo "hello"
      1
    
    echo a
    

Reply via email to