no-spoon:没有勺子

时间:2021-05-15 00:43:12
【文件属性】:
文件名称:no-spoon:没有勺子
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-15 00:43:12
Haxe no-spoon -像Neo一样弯曲它! 该库使您可以轻松地使用init宏修改/替换现有的类。 至少需要Haxe 3.2.1。 修补现有类上的字段 最简单的方法是使用类化: no. Spoon . bend ( ' haxe.Timer ' , macro class { static function repeat ( rate : Int , f : Void -> Void ) { var t = new haxe. Timer ( rate ); t . run = f ; return t ; } }) 但是, bend的第二个参数定义为Bender ,其定义如下: abstract Bender from BuildFields -> ClassType -> Void { @ :from static function fromDe
【文件预览】:
no-spoon-master
----.gitignore(5B)
----README.md(4KB)
----tests.hxml(57B)
----tests()
--------Modify.hx(916B)
--------RunTests.hx(291B)
----.vscode()
--------settings.json(110B)
--------tasks.json(114B)
----LICENSE(1KB)
----src()
--------no()
----haxe_libraries()
--------no-spoon.hxml(19B)
--------travix.hxml(227B)
----haxelib.json(287B)
----.travis.yml(258B)
----.haxerc(61B)

网友评论