haxe
haxe copied to clipboard
Haxe - The Cross-Platform Toolkit
There is also some idea to skip warning when you wrap condition in additional parentheses in first commit. Related to https://github.com/HaxeFoundation/haxe/issues/8634 ```haxe var foo = false; var foo2 = false;...
I have just updated Haxe on my work PC (I don't update as often as I do at home) I'm now getting some strange error when compiling this file: https://github.com/ncannasse/heaps/blob/master/hxd/impl/FastIO.hx...
``` haxe package; class Main { static function main() { trace((1.5555:R)); } } abstract R(Float) to Float { private inline function new(v:Float) this = Std.int(v); @:from public static inline function...
Can we have loop unrolling in inlined functions? ```haxe class Test { static function main() { test([1, 2]); } static inline function test(a:Array) { for(i in a) { trace(i); }...
```bash Fatal error: exception Out of memory ``` ```haxe class Main { static function main() { trace("Hello, world!"); } } typedef BinaryTreeDef = { // public final v : Null;...
If you have a try{} from which multiple different enums might be thrown the first catch for any enum will catch whatever enum is thrown. This happens on cpp. HL...
This code: Main.hx ```haxe @:build(Macros.buildMain()) class Main { } ``` Macros.hx ```haxe import haxe.macro.Context; class Macros { public static function buildMain() { var fields = Context.getBuildFields(); var fBody = "var...
Cannot undestand problem with warning diagnostics, need some help: (nullsafety warnings will stay if there is nullsafety errors btw) ```haxe @:nullSafety @:haxe.warning("-WRedundantNullCheck") class Main { static function main() { new...
Removes `this` temp vars for ES6 mode, functions that need function-scope `this` can be marked with ```haxe callback(@:js.function function() { // generate `function` in js instead of `() => {}`...
to make the output closer to the "native" ES6 and make the a bit code more readable we can generate native JS arrow functions for our anonymous functions. in addition...