RealyUniqueName / haxe

Haxe - The Cross-Platform Toolkit

Home Page:http://haxe.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calls to callback properties

RealyUniqueName opened this issue · comments

Haxe

class Test {
  static var staticCallback : Void->Void;
  var callback : Void->Void;

  static function main() {
    var t = new Test();
    t.callback();
    Test.staticCallback();
  }

  function new () {}
}

PHP

($t->callback)();
(Test::$staticCallback)();

Implemented in b159dd0