title: Invoking Groovy closures
body: <p>If I define a closure in Groovy</p>
  
  <pre><code>def c = {println "foo"}
  </code></pre>
  
  <p>I can invoke it using either</p>
  
  <pre><code>c()
  </code></pre>
  
  <p>or</p>
  
  <pre><code>c.call()
  </code></pre>
  
  <p>AFAIK, these two are identical. However, I recently discovered a third way</p>
  
  <pre><code>c.doCall()
  </code></pre>
  
  <p>Are there any differences between <code>call()</code> and <code>doCall()</code></p>
  
  <p>Thanks,
  Don</p>