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

Reflect "managed" status in the types of fat pointers #619

Merged
merged 5 commits into from
Dec 9, 2019
Merged

Reflect "managed" status in the types of fat pointers #619

merged 5 commits into from
Dec 9, 2019

Conversation

yallop
Copy link
Owner

@yallop yallop commented Dec 7, 2019

This internal-only change eliminates the use of Obj.t in Ctypes_ptr.Fat.t, instead reflecting the type of the managed field in the type and using existential types in clients (such as Ctypes.pointer and Ctypes.static_funptr) to hide the additional type parameter.

This change should eventually make it possible to give a more compact representation to Foreign.dynamic_funptr (#595).

@yallop yallop merged commit a900b59 into yallop:master Dec 9, 2019
@yallop yallop deleted the no-cptr branch December 9, 2019 19:51
fdopen added a commit to fdopen/ppx_cstubs that referenced this pull request Jan 22, 2020
Cstubs_internals.cptr and Cstubs_internals.fptr were removed in
yallop/ocaml-ctypes#619
fdopen added a commit to fdopen/ppx_cstubs that referenced this pull request Jan 22, 2020
Cstubs_internals.cptr and Cstubs_internals.fptr were removed in
yallop/ocaml-ctypes#619
fdopen added a commit to fdopen/ppx_cstubs that referenced this pull request Jan 24, 2020
Cstubs_internals.cptr and Cstubs_internals.fptr were removed in
yallop/ocaml-ctypes#619
fdopen added a commit to fdopen/ppx_cstubs that referenced this pull request Jan 24, 2020
Cstubs_internals.cptr and Cstubs_internals.fptr were removed in
yallop/ocaml-ctypes#619
fdopen added a commit to fdopen/ppx_cstubs that referenced this pull request Jan 26, 2020
Cstubs_internals.cptr and Cstubs_internals.fptr were removed in
yallop/ocaml-ctypes#619
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