title: calling super() from an actionscript constructor with varargs
body: <p>If a constructor takes its parameters as a vararg (...) it seems to be impossible to create a subclass that will just pass on that vararg to the superclass.</p>
  
  <p>There is a related question with fix for this same situation for normal functions: <a href="https://stackoverflow.com/questions/509638/wrapping-a-vararg-method-in-actionscipt">Wrapping a Vararg Method in ActionScipt</a> but I cannot get that to work with a super call.</p>
  
  <p>base class:</p>
  
  <pre><code>public class Bla
  {
      public function Bla(...rest)
      {
          trace(rest[0]); // trace the first parameter
      }
  
  }
  </code></pre>
  
  <p>subclass:</p>
  
  <pre><code>public class Blie extends Bla
  {
      public function Blie(...rest)
      {
          // this is not working, it will 
          // pass an array containing all 
          // parameters as the first parameters
          super(rest); 
      }
  
  }
  </code></pre>
  
  <p>if I now call</p>
  
  <pre><code>        var b1 = new Bla('d', 'e');
          var b2 = new Blie('a', 'b', 'c');
  </code></pre>
  
  <p>I get the output</p>
  
  <pre><code>d
  a,b,c
  </code></pre>
  
  <p>And I want it to print out:</p>
  
  <pre><code>d
  a
  </code></pre>
  
  <p>Aside from actually moving the handling of the parameters to the subclass or shifting it off to a separate initializer method, does anyone know how to get the super call right?</p>