haxe
haxe copied to clipboard
Haxe - The Cross-Platform Toolkit
Haxe lacks min/max constants for numeric (`Int`, `Float`, `UInt`) types. There is an implementation in as3hx [Float](https://github.com/HaxeFoundation/as3hx/blob/master/src/as3hx/Compat.hx#L216-L258) [Int](https://github.com/HaxeFoundation/as3hx/blob/master/src/as3hx/Compat.hx#L260-L305) Those constants could be added to `Math` class or to corresponding base...
Haxe: 4.2.5; OS type: windows; File "src/generators/genswf9.ml", line 2839, characters 93-100 Called from file "src/generators/genswf9.ml", line 2839, characters 86-100 Called from file "src/generators/genswf9.ml", line 1132, characters 9-99 Called from file...
Here's a different approach to handling the internal state for coroutines. This is pretty much #10128 but without the additional argument to `TFun`. The idea is this: * Instead of...
Surprisingly the following compile while it shouldn't ( T should be Int on step++) ```haxe enum abstract T(Int) { var Start; var End; } class Test { static var step(default,set)...
For https://github.com/HaxeFoundation/haxe/issues/11466 and https://github.com/HaxeFoundation/haxe/issues/9174 .
If a .hx file is located in a capitalized folder in Windows, I get the following error: "Type name X is redefined from module X (cb5ac375c8b3161f1f85bbfe7b70069e)" This does not seem...
I just accidentally put `build.hxml` in my `build.hxml` and that didn't go very well. It would be nice if the compiler caught that.
```hx class Test { static function main() { var now = Date.now().getTime() - Foo.a; trace(now); } } enum abstract Foo(Float) to Float { var a = 10000001; } ``` This...
``` File "src/macro/eval/evalLuv.ml", line 1951, characters 29-37: 1951 | FS_event.start event path callback ^^^^^^^^ Error: This expression has type (string * Luv.FS_event.Event.t list, Luv.Error.t) Result.t -> unit but an expression...
When comparing `Null` with `Int`, HL will allocate instead of doing two checks, one for null and one for the integer. For example: ```haxe class Main { public var x...