julia> zeros(Ptr{Uint8},2)
WARNING: zero{T}(::Type{Ptr{T}}) is deprecated, use Ptr{T}(0) instead.
in zero at deprecated.jl:29
in zeros at array.jl:202
2-element Array{Ptr{UInt8},1}:
Ptr{UInt8} @0x0000000000000000
Ptr{UInt8} @0x0000000000000000
write, I can do
julia> Ptr{Uint8}(0)
Ptr{UInt8} @0x0000000000000000
but I don't want that. I want an array of pointers and I can't create them
neither with
julia> Array(Ptr{Uint8}(0),2)
ERROR: MethodError: `convert` has no method matching convert(::Type{Array{T,
N}}, ::Ptr{UInt8}, ::Int64)