HaxeFoundation / haxe.org-comments

Repository to collect comments of our haxe.org websites
2 stars 2 forks source link

[haxe.org/manual] Conditional Compilation #8

Open utterances-bot opened 5 years ago

utterances-bot commented 5 years ago

Conditional Compilation - Haxe - The Cross-platform Toolkit

Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.

https://haxe.org/manual/lf-condition-compilation.html

chrisvelevitch commented 5 years ago

Where are the target specific flags listed and described?

Tanz0rz commented 4 years ago

Over a year later and I came to this document with the exact same question as @chrisvelevitch

RealyUniqueName commented 4 years ago

We only have this page currently: https://haxe.org/manual/compiler-usage-flags.html

joshtynjala commented 2 years ago

To check a specific haxelib version, use the operators, for example #if (actuate <= "1.8.7")

I just heard from someone that I can use version("1.8.7") to more safely compare versions that might have multiple digits. It seems to work, but I worry about it being undocumented. Can this be officially documented? Or is it something that I should actually avoid?