haxe
haxe copied to clipboard
Haxe - The Cross-Platform Toolkit
```haxe function main() { trace(["🥚", "🐔"]); } ``` ``` source/Main.hx:2: [??,??] ``` Printing emoji works fine for me on every single other target (even neko), so I doubt it's something...
See https://github.com/HaxeFoundation/haxe-evolution/pull/65 This requires some busywork in the generators, but other than that shouldn't be controversial. We need a `-D` flag to allow configuring this behavior.
```haxe @:forward(forwarded) abstract A({function forwarded():Void;}) { public function defined() {} } function f(v:TA) { v.defined(); // works v.forwarded(); // doesn't work } ```
It's currently possible to type enum abstract values as the underlying type if there's a `from`, which seems like a strange misuse that can unfortunately be found in some codebases......
```haxe class A { static var A:Int; } class Main { static function main() { A.A; } } ``` gives ``` src/Main.hx:7: characters 5-6 : Cannot access private field A...
`pack/Main.hx` ```haxe package pack; class Main { static function main() {} } ``` `build.hxml` ```hxml --main pack.Main --macro nullSafety("pack", Strict) ``` Running it at least twice will give ``` >...
I have latest Haxe build on Windows and Linux, plus Java (openjdk 11 on Linux) and hxJava as well. Following code ```haxe @:multiType abstract Zero(Null) { public function new(); @:to...
We have ```ocaml | EqDoNotFollowNull (* like EqStrict, but does not follow Null *) ``` But there's this check in the `TAnon,TAnon` case: ```ocaml if f1.cf_kind f2.cf_kind && (param =...
This: ```haxe class Main { static function main() { test(0); } @:overload static function test(value:Int) {} @:overload static function test(value:Null) {} } ``` currently fails with ``` source/Main.hx:7: characters 2-36...
Currently you can define flags that are reserved on the command line via `haxe.macro.Compiler.define()`, which seems like an oversight.