| Anonymous | Login | Signup for a new account | 2013-05-20 18:19 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
| 0005154 | OCaml | OCaml general | public | 2010-09-23 10:03 | 2011-05-20 15:56 | ||||||
| Reporter | ygrek | ||||||||||
| Assigned To | |||||||||||
| Priority | normal | Severity | feature | Reproducibility | always | ||||||
| Status | acknowledged | Resolution | open | ||||||||
| Platform | OS | OS Version | |||||||||
| Product Version | 3.11.2 | ||||||||||
| Target Version | Fixed in Version | ||||||||||
| Summary | 0005154: #define Val_some | ||||||||||
| Description | OCaml 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) { CAMLparam1(v); CAMLlocal1(some); some = caml_alloc_small(1, 0); Field(some, 0) = v; CAMLreturn(some); } #define Some_val(v) Field(v,0) | ||||||||||
| Tags | No tags attached. | ||||||||||
| Attached Files | |||||||||||
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2010-09-23 10:03 | ygrek | New Issue | |
| 2011-05-20 15:56 | doligez | Status | new => acknowledged |
| Copyright © 2000 - 2011 MantisBT Group |