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

Overload + operator to allow both int and real arguments #29

Closed
julianhyde opened this issue Apr 14, 2020 · 1 comment
Closed

Overload + operator to allow both int and real arguments #29

julianhyde opened this issue Apr 14, 2020 · 1 comment

Comments

@julianhyde
Copy link
Collaborator

Overload + operator (and other arithmetic operators) to allow both int and real arguments. If there are no clues in the argument types, it should default to int. For example:

- fun plus x y = x + y;
val plus = fn : int -> int -> int
- fun plus2 x y = x + y + 0.0;
val plus2 = fn : real -> real -> real
@julianhyde
Copy link
Collaborator Author

Fixed in 3aafd3b.

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

No branches or pull requests

1 participant