Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring back class map #205

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Bring back class map #205

wants to merge 1 commit into from

Conversation

Neu2o
Copy link
Collaborator

@Neu2o Neu2o commented Oct 2, 2020

At the moment, at least with Haxe 4.1.5, openfl.Dictionary always compiles to UtilsObjectMap for Class. This is because UtilsObjectMap uses openfl.Object as key type and this is an abstract over Dynamic. That way at the moment Class matches openfl.Object and so it generates UtilsObjectMap instead of ClassMap. By swapping the order I give Class precedence over openfl.Object, so it generates ClassMap again, which I believe is correct.

I also added fromEnumValueMap as openfl.Dictionary already has toEnumValueMap and this was the only missing pair.
Removed fromEnumValueMap again as Haxe Map also doesn't have it: https://github.com/HaxeFoundation/haxe/blob/4.1.4/std/haxe/ds/Map.hx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant