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

Scala3: Don't emit static calls to object methods, use method dispatch instead #3747

Closed
WojciechMazur opened this issue Feb 11, 2024 · 0 comments · Fixed by #3750
Closed

Comments

@WojciechMazur
Copy link
Contributor

Based on com-lihaoyi/unroll#9

We should fix compiler plugin to always generate pair or instructions method + call instead of a direct call to statically known function. Optimizer would replace method dispatch of method with a single implementation with a virtual call. It would allow the API to evolve in binary compatible way - in case of mention issue it was moving method from object to implemented trait.

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

Successfully merging a pull request may close this issue.

1 participant