haxe
haxe copied to clipboard
Haxe - The Cross-Platform Toolkit
I had a discussion with @tobil4sk about this in the discord but there probably needs to be an issue raised. The current algorithm in the haxe.zip.Reader reads the data size/compressed...
Repro repo: https://github.com/kevinresol/haxe_issues/tree/issue_12226 Host.hx ```haxe class Host { public static function main() { cpp.cppia.Host.runFile(haxe.io.Path.directory(Sys.programPath()) + "/script.cppia"); } } ``` host.hxml ``` --main Host --cpp bin --class-path src --define scriptable --dce...
Any string containing emoji for example is corrupted on CPP. Using this fixes it: ``` function quote(s:UnicodeString) { addChar('"'.code); for (c in s) { switch (c) { case '"'.code: add('\\"');...
Currently in Haxe, we can use @:native or @:jsName to control how classes, methods, and fields are named in the generated output. However, these approaches are either target-specific or not...
Padding for numbers is optional by adding dash (%-*). ```haxe DateTools.format(new Date(2025, 1, 2, 0, 0, 0), "%-d/%-m"); // removes leading zero from day and month ``` Support day of...
If macro function receives non primitive args, `getExpectedType()` returns null after `Context.typeof()` call. Reproduces on all the nightlies but works fine on 4.3.6. ```haxe class Macro { public static macro...
| Haxe: 5.0.0-alpha.1+c177bd5; OS type: windows; | File "src/filters/exception/saveStacks.ml", line 114, characters 21-28 | Called from Stdlib__List.iter in file "list.ml", line 112, characters 12-15 | Called from Domainslib__Task.parallel_for.work in file...
I discovered that simple signal implementation i've always used, passes garbage instead of numbers to callback on hl target. In the original implementation i have macro dispatch() function for listeners...
```haxe import haxe.exceptions.NotImplementedException; function throwing() { throw new NotImplementedException(); } function syncFun2() { throwing(); } function syncFun1() { syncFun2(); } function main() { try { syncFun1(); } catch(e:NotImplementedException) { trace(e.stack);...
"Implicit cast from I64 to Int (32 bits) is deprecated" has a wrong position with inline functions.
In this snippet: ([try haxe](https://try.haxe.org/#e3b1F767)) ```haxe inline function pos(): hl.I64 { return 0; } inline function getAt(ret: hl.I64, pos: Int): hl.I64 { return pos; } inline function flipX(v: hl.I64) {...