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

Type conversions #10

Open
4 tasks
augustt198 opened this issue Jan 20, 2015 · 0 comments
Open
4 tasks

Type conversions #10

augustt198 opened this issue Jan 20, 2015 · 0 comments

Comments

@augustt198
Copy link
Owner

Type conversion needs to be further developed. It's currently limited to conversions between primitives in additive/multiplicative expressions.

Implicit conversions needed:

  • Boxing
  • Unboxing
  • Primitive widening
  • Reference widening

(Identity conversion has been omitted because it is obvious)

Method selection also has to be improved. It currently only matches methods with the exact same name, arity, and type.

New algorithm for matching methods:

  • Match methods with the same name
  • Match methods with the same arity
  • Match methods applicable by subtyping
  • Match methods applicable by method invocation conversion
  • If multiple methods are still applicable, choose the most specific method (closest subtype)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant