Skip to content

Remove the Closure module from Obj#12625

Merged
xavierleroy merged 3 commits intoocaml:trunkfrom
lthls:remove-obj-closure
Oct 4, 2023
Merged

Remove the Closure module from Obj#12625
xavierleroy merged 3 commits intoocaml:trunkfrom
lthls:remove-obj-closure

Conversation

@lthls
Copy link
Copy Markdown
Contributor

@lthls lthls commented Oct 3, 2023

It was introduced in #9691, for use in CamlinternalMod, but rendered obsolete by #10205.
It could have been used outside the compiler, but given that it doesn't support all closures (it fails on infix ones), I don't think it's useful on its own.

Copy link
Copy Markdown
Contributor

@xavierleroy xavierleroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be happy to see this hack go away. Is there a way to confirm it's not used anywhere? Like an OPAM-wide grep?

@avsm
Copy link
Copy Markdown
Member

avsm commented Oct 4, 2023

Sherlocode to the rescue! Obj.Closure instances only show up once, as part of a forked compiler package.

@xavierleroy
Copy link
Copy Markdown
Contributor

Fine! Let's merge, then.

@xavierleroy xavierleroy merged commit 1649965 into ocaml:trunk Oct 4, 2023
sadiqj pushed a commit to sadiqj/ocaml that referenced this pull request Oct 8, 2023
This module was introduced in ocaml#9691, for use in CamlinternalMod, but rendered obsolete by ocaml#10205.
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.

3 participants