Skip to content

Fix #5372: Use applyDynamic in structural calls #5377

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

Merged
merged 1 commit into from
Nov 3, 2018

Conversation

Duhemm
Copy link
Contributor

@Duhemm Duhemm commented Nov 2, 2018

This commit changes how Selectable works for calling methods: It used
to be called `selectMethodDynamic and to receive the name of the method
to call along with the class tags of the formal parameters.

This commit renames it to applyDynamic, and changes it so that it also
takes the actual arguments that are passed in the function call.

Fixes #5372

This commit changes how `Selectable` works for calling methods: It used
to be called `selectMethodDynamic and to receive the name of the method
to call along with the class tags of the formal parameters.

This commit renames it to `applyDynamic`, and changes it so that it also
takes the actual arguments that are passed in the function call.

Fixes scala#5372
@Duhemm Duhemm requested a review from odersky November 2, 2018 18:38
@sjrd
Copy link
Member

sjrd commented Nov 2, 2018

Nice, thank you! I'm especially pleased to see that it actually reduces complexity in Selectable.scala, and that it removes the 7 limit restriction. :)

Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I am amazed how fast this went.

@odersky odersky merged commit 8610cdb into scala:master Nov 3, 2018
@allanrenucci allanrenucci deleted the fix/5372 branch November 30, 2018 10:27
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.

3 participants