title: How to create an Expr that evaluates to Expr in Julia?
body: <p>I have a variable <code>ex</code> that represents an Expr, I want to have a function <code>exprwrap</code> that creates an Expr from it which when evaluated is equal to <code>ex</code>.</p>
  
  <p>Currently I implement it as follows:</p>
  
  <pre><code>ex = :(my + expr)
  
  "Make an expression that when evaled returns the input ex."
  function exprwrap(ex::Expr)
    ret = :(:(du + mmy))
    ret.args[1] = ex
    ret
  end
  
  eval(exprwrap(ex)) == ex
  </code></pre>
  
  <p>Keep in mind that <code>my</code> and <code>expr</code> are not defined so <code>:(:($$ex))</code> does not do the job.</p>
  
  <p>What is a cleaner way to do this?</p>