Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007721OCamlruntime system and C interfacepublic2018-02-05 16:562018-07-09 17:45
Reportersbleazard 
Assigned To 
PrioritylowSeverityfeatureReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version4.06.0 
Target VersionFixed in Version 
Summary0007721: caml_alloc_abstract is missing and the abstract tag lightly documented
DescriptionWhen interfacing to C it is fairly common to store a C data structure in an ocaml value without needing any of the additional functionality provided by caml_alloc_custom. Some people recommend caml_alloc_string for this but that seems wrong.

Can caml_alloc_abstract(n) be added to allocate an n-byte abstract value? This could then be used when a simple block of data is required to store some C data that will not be compared nor serialised but will be garbage collected once out of scope.

Also, the manual does not really cover the Abstract_tag very much as I think this is what I need but it's unclear


TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0018870)
sbleazard (reporter)
2018-02-12 16:05
edited on: 2018-02-12 16:06

GPR#1602 (https://github.com/ocaml/ocaml/pull/1602 [^]) raised to resolve this issue


- Issue History
Date Modified Username Field Change
2018-02-05 16:56 sbleazard New Issue
2018-02-12 16:05 sbleazard Note Added: 0018870
2018-02-12 16:05 sbleazard Note Edited: 0018870 View Revisions
2018-02-12 16:05 sbleazard Note Edited: 0018870 View Revisions
2018-02-12 16:06 sbleazard Note Edited: 0018870 View Revisions
2018-02-12 16:06 sbleazard Note Edited: 0018870 View Revisions
2018-07-09 17:45 alirafami Note Added: 0019224
2018-07-11 11:23 stedolan Note Deleted: 0019224


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker