-
-
Notifications
You must be signed in to change notification settings - Fork 662
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
Feature Request : haxe.ds.Vector.sort #3388
Comments
I don"t know how practical that would be. You would have to pass a comparison function which already is a problem on some targets. We could do better with static extensions that restrict to specific types (e.g. It would be nice if we could define multiple selective abstract functions with the same name. This would allow us to define I"ll have to think about this. |
That is also what I was talking about WRT |
@waneck: Shouldn"t this work on Java target?
|
Type parameters evaluation are delayed IIRC. Why is that?
|
@waneck most likely because of constraints |
I see. The problem is most probably there - IIRC a type parameter check failure bypasses the overload selection and just shows an error. |
Hold on, this is at least partially my fault. |
So, my example now works on Java and C#. I would like to suggest allowing this for abstracts on all targets with the requirement that the method be inline (and forcing the inline). |
It would be great if this made it possible for Math.Max to properly deal with Ints instead of always forcing the return value to Float. |
That would be an awesome addition, Simn! |
I was trying to get it implemented, but there"s too much going on with |
Hi
Would be cool to have a cross platform to a native sort ( just like Array.sort )
For example for cross platform particles and such.
++
The text was updated successfully, but these errors were encountered: