-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Groups of arguments binded with chained Callable.bind
calls are appended in reversed call order
#62891
Comments
Technically, this is documented behavior. But I agree that it's not intuitive (especially when following Python terminology). |
I'm not sure why it's like this. It seems to be used in the engine like this internally for connecting signals. In any case, need to be discussed with core team too. |
So, this is not really a bug, it's just the way |
Yeah, I agree. |
While this is documented behaviour, it doesn't seem to be "right" behaviour. I want my bind to act in the "first argument bound comes first" way, but it seems there isn't any way to extend Callable to add an "alt_bind()" or something like that. |
Godot version
4.0.alpha11
System information
N/A
Issue description
Currently
callable.bind(a1, a2).bind(b1, b2)
is equivalent tocallable.bind(b1, b2, a1, a2)
. I think it should be equivalent tocallable.bind(a1, a2, b1, b2)
.Steps to reproduce
Run this script:
Output:
Expected output:
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: