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

Document runtime representation of extensible variants and exceptions #12570

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

sim642
Copy link
Contributor

@sim642 sim642 commented Sep 17, 2023

The runtime memory representation of extensible variants is not documented in the "Interfacing C with OCaml" section of the official manual nor the "Memory Representation of Values" section of RWO.
It is described by @Octachron on StackOverflow: https://stackoverflow.com/a/54872172/854540. This PR adds this information to the official manual because that SO answer is hard to find when looking for this information.

@dra27
Copy link
Member

dra27 commented Sep 17, 2023

I'm struggling to find it, but I thought that in general when the question of these representations comes up, the answer has been not to deconstruct them from C (I think it's a similar story for the representation of first class modules and so forth). If that's the case, might that be a better explanation of that here? i.e. show you to use the Obj module instead?

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.

None yet

2 participants