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

Implement basic support for doubles. #47

Merged
merged 1 commit into from
Sep 30, 2019
Merged

Conversation

ltratt
Copy link
Member

@ltratt ltratt commented Sep 27, 2019

This implements operations such as +-* (though note that Doubles don't implement / in SOM!) but not comparisons (as we really need to improve some of our other support before it's worth fixing doubles) and many other necessary operations. However, it does largely integrate Doubles into the internal type system.

Note that this PR starts to diverge from SOM for minor reasons over formatting of doubles (SOM-st/SOM#22) and inconsistencies in Java SOM (at least) (SOM-st/SOM#20). Hopefully we will be able to fix that divergence at some point.

This implements operations such as +-* (though note that Doubles don't implement
'/' in SOM!) but not comparisons (as we really need to improve some of our other
support before it's worth fixing doubles) and many other necessary operations.
However, it does largely integrate Doubles into the internal type system.
@ltratt
Copy link
Member Author

ltratt commented Sep 27, 2019

bors try

bors bot added a commit that referenced this pull request Sep 27, 2019
@bors
Copy link
Contributor

bors bot commented Sep 27, 2019

try

Build succeeded

@ptersilie
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request Sep 30, 2019
47: Implement basic support for doubles. r=ptersilie a=ltratt

This implements operations such as `+-*` (though note that Doubles don't implement `/` in SOM!) but not comparisons (as we really need to improve some of our other support before it's worth fixing doubles) and many other necessary operations. However, it does largely integrate Doubles into the internal type system.

Note that this PR starts to diverge from SOM for minor reasons over formatting of doubles (SOM-st/SOM#22) and inconsistencies in Java SOM (at least) (SOM-st/SOM#20). Hopefully we will be able to fix that divergence at some point.

Co-authored-by: Laurence Tratt <[email protected]>
@bors
Copy link
Contributor

bors bot commented Sep 30, 2019

Build succeeded

@bors bors bot merged commit 0a24658 into softdevteam:master Sep 30, 2019
@ltratt ltratt deleted the doubles branch September 30, 2019 08:32
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.

2 participants