Skip to content

User defined compound assignment operators #9100

Discussion options

You must be logged in to vote

This doesn't look like an accurate interpretation of the spec. The added operator won't be applicable, therefore, it won't prevent use of a +. Fall back won't happen only in presence of applicable to the arguments instance operators.

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
2 replies
@tannergooding
Comment options

@tannergooding
Comment options

Comment options

You must be logged in to vote
1 reply
@jnm2
Comment options

jnm2 Feb 12, 2025
Collaborator

Comment options

You must be logged in to vote
5 replies
@tannergooding
Comment options

@colejohnson66
Comment options

@hamarb123
Comment options

@jilles-sg
Comment options

@hamarb123
Comment options

Comment options

You must be logged in to vote
1 reply
@AlekseyTs
Comment options

AlekseyTs Feb 20, 2025
Collaborator Author

Answer selected by AlekseyTs

This comment has been hidden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment