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

Address various deprecation warnings. #40

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

clegoues
Copy link

@clegoues clegoues commented Feb 1, 2018

As of OCaml 4.02:

  • Bytes module is introduced
  • Strings are immutable, so String.set and String.copy are deprecated.

To the latter point, the changes to Pretty and Errormsg are only necessary for compilation in 4.06; behavior should be the same in previous versions.

As of OCaml 4.03:

  • Array.create is deprecated
  • String.uppercase deprecated; replace with uppercase_ascii

I have confirmed compilation in 4.03, 4.04, and 4.06.0+trunk (with other changes to fix the Num module movement problem, a different PR) on Darwin. I have run "make test", and the same tests fail before and after the changes (which really should be semantics-preserving).

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.

1 participant