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

Use "fixed" structure Real64 with recent versions of SML/NJ #525

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

MatthewFluet
Copy link
Member

Closes #523

Although SML/NJ 110.99.3 fixed some issues with structure Real{,64} failing to match the SML Basis Library specification, it did not implement Real.fmt StringCvt.EXACT. So, a "fixed" version of structure Real64 needs to be exported (rather than exposing the version of structure Real64 from $/basis.cm) and it is simplest to revert back to structure Real64 = Real (where structure Real = FixReal(struct open Pervasive.Real end)).

Closes MLton#523

Although SML/NJ 110.99.3 fixed some issues with `structure Real{,64}`
failing to match the SML Basis Library specification, it did not
implement `Real.fmt StringCvt.EXACT`.  So, a "fixed" version of
`structure Real64` needs to be exported (rather than exposing the
version of `structure Real64` from `$/basis.cm`) and it is simplest to
revert back to `structure Real64 = Real`
(where `structure Real = FixReal(struct open Pervasive.Real end)`).
@MatthewFluet MatthewFluet merged commit f8b1d3e into MLton:master Nov 7, 2023
8 of 9 checks passed
@MatthewFluet MatthewFluet deleted the smlnj-real64-fmt-exact branch November 7, 2023 12:15
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.

Error with SML/NJ-built mlton: SML/NJ does not support EXACT formatting of reals
1 participant