Is the following code safe?

f(x) = pointer_to_array(x, 2)[1]

f(pointer([1,2]))

Is this safe?

ccall((:fun, :lib), Void, (Ptr{Int64},), pointer([1,2]))

I think this is very suspicious, but I'm not familiar with Julia's exact 
rules here.

Reply via email to