Haxe3 to Haxe4 transition issue

I installed Haxe 4.1.1 on top of Haxe 3.4.7. It was no any option to uninstall haxe3 during installation process.

Now, for code like
#if haxe3
trace(“haxe3”);
#end
#if haxe4
trace(“haxe4”);
#end

I have output:
src/Main.hx:21: haxe3
src/Main.hx:24: haxe4

Question, how can I remove haxe3 properly, where #haxe3 taking info, can I disable #haxe3 manually?

1 Like

haxe3 is supposed to mean >= 3. It should remain defined, otherwise libraries might break.

1 Like

I see, Thanks!

1 Like