Displaying 1 result from an estimated 1 matches for "null_creat".
Did you mean:
null_creator
2009 Nov 18
1
R_NilValue and segfault.
...lating 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
>
> # R.sexptype (R.sexp "1");;
> - : R.sexptype = R.RealSxp
> # R.sexptype Quantmod.getSymbols;;
> - : R.sexptype = R.PromSxp
The t...