haxe
haxe copied to clipboard
Haxe - The Cross-Platform Toolkit
**Environment** macOS 12.4 haxe 4.3.0-rc.a49b191 Take the following snippet: ``` enum Foo { A(s: String); B(i: Int); } class Main { static function main() { var f1 = A(""); var...
I successfully installed Haxe using the [CentOS instructions](https://haxe.org/download/linux/). When I attempt to run the `haxelib setup` command it returns the error: Segmentation fault (core dumped) What should I do?
It would be nice to have the ability to have a "custom module type" that takes precedence in module resolution. One concern is the number of lookups. It would be...
```haxe class Main { static final numbers = []; static function addNum(n:Int):Int { numbers.push(n); return n; } static final node = addNum(1); static function main() { trace(numbers.length); // 0 }...
### Use Case I'm implementing the hough transform in haxe, and one of the things needed to create the transform is an accumulator, this accumulator should be a 2D array,...
```haxe import haxe.Rest; function main() { test(0,1); // works test(...[0,1]); // works test(...[for (i in 0...2) i]); // errors } function test(args:Rest) {} ``` ```sh Exception in thread "main" java.lang.ClassCastException:...
**Stuff** OS: Windows, Linux Haxe: 4.2.5, dev build **Instruction of reproduction** 1. Clone repo https://github.com/djaonline/haxe_compile_server_issue 2. Open project in vscode and run compiler(ctrl + shift + B) 3. The compilation...
Hej, I don't know if it's a documentation problem https://haxe.org/manual/lf-metadata.html#since-haxe-4.0.0 and it only applies to compile-time meta or if it's a bug, but you can't use a runtime metadata name...
One of our projects causes a compiler crash when targeting jvm: ``` Fatal error: exception IO.Overflow("write_ui16") Raised at file "IO.ml", line 669, characters 36-59 Called from file "src/generators/jvm/jvmGlobals.ml", line 160,...
Example: ```haxe import sys.net.*; function connect(options) { var ret = new Socket(); ret.connect(options.host ?? Host.localhost(), options.port); return ret; } ``` In this case I would like `options` to be inferred...