Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005154OCamlOCaml generalpublic2010-09-23 10:032013-10-07 16:17
Assigned To 
PlatformOSOS Version
Product Version3.11.2 
Target VersionFixed in Version 
Summary0005154: #define Val_some
DescriptionOCaml C interface defines many macros to construct/access primitive ocaml values from C code. One thing that I often find missing and have to copy-paste myself in almost every binding is code to handle option type.
Additional Information#define Val_none Val_int(0)

value Val_some(value v)
    some = caml_alloc_small(1, 0);
    Field(some, 0) = v;

#define Some_val(v) Field(v,0)
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2010-09-23 10:03 ygrek New Issue
2011-05-20 15:56 doligez Status new => acknowledged
2013-10-07 16:17 doligez Tag Attached: patch

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker