I don't think the conversion does what you want. Instead you may be looking
for this:

julia> type foo a::Int; b::Int end

julia> tp=foo(2,3)
foo(2,3)

julia> p=pointer_from_objref(tp)
Ptr{Void} @0x00007fa70872e188

julia> pt=unsafe_pointer_to_objref(p)
foo(2,3)

Thanks,

Jiahao Chen
Staff Research Scientist
MIT Computer Science and Artificial Intelligence Laboratory

Reply via email to