Pass static method as value
RealyUniqueName opened this issue · comments
Haxe
class Test {
static function some () return 'hello';
static function main () {
return Test::some;
}
}
PHP
class Test {
static function some () {
return 'hello';
}
static function main () {
return function() { return Test::some(); };
}
}
Approach has been changed in 5776b8d:
class Test {
static function some () {
return 'hello';
}
static function main () {
return new HxClass(Test::class, 'some');
}
}
Implemented in 9159b64
you know you can just add closes #41
to the commit message and have it closed automatically
I know. But what will happen when these commit messages migrate to HF/haxe repo? Is it ok to reference a fork in a history of original repo?
That's a good question :)
It will be confusing to go to issue 41 and find completely unrelated things )