haxe
haxe copied to clipboard
Haxe - The Cross-Platform Toolkit
https://try.haxe.org/#FeD45a50 ```haxe import haxe.Constraints.Function; class Test { static function main() { trace("Haxe is great!"); } } enum abstract Events(Event) { var Sleep = new Event Void>(0); } abstract Event(Int) {...
JavaScript's [native import syntax](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) is gaining support and usage – the latest version of three.js no longer supports `require()` for some modules and so presently cannot be used with haxe...
If I have an abstract over another abstract, the `@:forward` meta won't forward the underlying abstract's operator overloads. Can it be supported? Example: http://try.haxe.org/#eBedf
When transforming an array with `std.Array.map(Std.parseInt)` and assigning the result to a variable typed as `Array`, compiling to HashLink doesn't raise an error. Example code: ```Haxe class Main { static...
I am using Map. When the value is a String this line works only in JS target: if(mymap["key"].indexOf("text")
Tracking some leftovers from #9009 here: ## `pf.ssl`? https://github.com/HaxeFoundation/haxe/pull/9009#discussion_r354280840 ## `x509_crl` `ca_chain` has an optional argument to pass in a `mbedtls_x509_crl` structure, but we currently expose no methods to actually...
```haxe src/Foo.hx function hi():Void { trace("hi"); } src/client/Main.hx package client; function main() { Fo| // or Foo.| } build.hxml --class-path src --main client.Main # -D analyzer-optimize # --dce full #...
Reproduced with 4.0.5 and development branch **Main.hx** ```haxe class Main { static function main() { trace('this will print correctly, but if using vscode build, the next line will not appear');...
At the moment, the `haxe.macro.Compiler` API has various functions that modify compilation parameters. However, they can be freely used from any random macro, which I don't think was the original...
While looking to fix some parseInt issues (PR soon), I noticed that `Std.parseInt` on php allows for the exponent notation. ```haxe Std.parseInt("10e2"); // returns 1000 ``` This does not match...