title: Delegates in Haxe
body: <p>Is there something like a delegate in Haxe?</p>
  
  <p>This would come in handy when I use a anonymous function but still want to maintain the current class'es variable scope.</p>
  
  <pre><code>myObject.callback = function(param) { this.variable = param; };
  </code></pre>
  
  <p>As you can see <code>this</code> is not accessible from within the function body. :-(</p>