Up until v0.3, the signature of jl_new_array
was
jl_array_t *jl_new_array(jl_value_t *atype, jl_tuple_t *dims)
And as off v0.4, the signature has changed to
jl_array_t *jl_new_array(jl_value_t *atype, jl_value_t *dims)
The documentation still reflects the old signature: https://docs.julialang.org/en/latest/devdocs/object.html#Object-allocation-1
More practically, I wonder what is the right way to allocate the dims
tuple to be passed to jl_new_array
with a given size from the C API. Is there any example of that somewhere?