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

Maps can't use some keys types (Int64, Float, Bool...) since the new Haxe 4.3.0 version #600

Open
tfabretti opened this issue Apr 18, 2023 · 3 comments

Comments

@tfabretti
Copy link

Trying to create maps with some types as key gives an error : Abstract haxe.ds.Map has no @:to function that accepts haxe.IMap<haxe.Int64, Int>
I realized it with the Int64 type but then, I've been talking about this on the Heaps Discord and Yanrishatum (<3) found out it also applied to Float or Bool. Their theory is that it's linked to @:runtimeValue.
Here are some examples : https://try.haxe.org/#18552329.

@ncannasse
Copy link
Member

I think that's more an Haxe issue than an Hashlink one. We did change Int64 to be a native type but we haven't yet introduced a 64 bit Map in Haxe for all platforms.

@ncannasse
Copy link
Member

I'm not sure if and how these used to work, but that was more by accident than by design :)

@tfabretti
Copy link
Author

Oh, I see. As it worked in JS, I thought it was a HL issue. My bad. Should I open an issue on the Haxe git ?
It used to work in a broken way. The Int64 was an Object so it was comparing reference and not value.

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

No branches or pull requests

2 participants