search for: r_null

Displaying 1 result from an estimated 1 matches for "r_null".

Did you mean: z_null
2009 Nov 18
1
R_NilValue and segfault.
...ues.h. */ > CAMLreturn(result); > } and a function taking no argument (in the sense of OCaml), and returning an OCaml object encapsulating a pointer which is R_NilValue. (R_NilValue is already a pointer, so we just copy it). > /* The NULL constant in R... */ > > CAMLprim value r_null (value unit) { > CAMLparam1(unit); > CAMLreturn(Val_sexp(R_NilValue)); > } OCaml code is straightforward: > external null_creator : unit -> sexp = "r_null" > let null = null_creator () And I get a segfault: > Objective Caml version 3.11.1 > > #...