I want to create an array of type Array{(Any, Any), 1}

This is the code that i am 

jl_datatype_t *ttype = (jl_datatype_t *) jl_eval_string("(Any, Any)");
ret = rj_new_array(ttype, jl_tuple1(jl_box_int64(n)));

Of course, it is not elegant enough, since I am using `jl_eval_string`.
I tried 

jl_datatype_t *ttype = (jl_datatype_t *) jl_typeof(jl_alloc_tuple(2));

But it doesn't produce a right result, it gives me `Array{(Any...), 1}`

Any advise?

Reply via email to