[haXe] This does not work in PHP ..

Marc Weber marco-oweber at gmx.de
Thu Mar 18 01:18:02 CET 2010


class TA {

  public function new() {
  }

  static function main() {
    trace("hello world");
    var t:Dynamic = new TA();
    t.a = function (a,b){
      return a + b;
    }
    trace(t.a(2,4)); // << message TA::a is not defined
  }

}

Is this a bug?

I asked myself how to use the dynamic unchecked features of Flash.
That lead me to this example.

I don't need this feature - Is there a list of differences ?

Is there huge test suite which is run on different targets illustrating
differences?

What is Options.txt used for (cpp backend)

Marc Weber



More information about the Haxe mailing list