How can you use a Map in HScript? #2941
Answered
by
riconuts
TechnikTil
asked this question in
Q&A
-
How can you use a Map in HScript, or any abstracts in that case? |
Beta Was this translation helpful? Give feedback.
Answered by
riconuts
Jul 1, 2024
Replies: 1 comment 1 reply
-
In the case of Map, you should use StringMap, ObjectMap, EnumValueMap or IntMap, as that's what the Map abstract turns into in compiled Haxe code. For the rest there's just not always a clear alternative and you'll have to find your way around them as abstracts don't exist during runtime. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TechnikTil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the case of Map, you should use StringMap, ObjectMap, EnumValueMap or IntMap, as that's what the Map abstract turns into in compiled Haxe code. For the rest there's just not always a clear alternative and you'll have to find your way around them as abstracts don't exist during runtime.