Hi, 
So I started trying to port my code to 0.5 using Compat and it seams a hell 
is expecting me. 
This is one example of what happens when I try to follow the deprecation 
suggestions. This

    t = pointer_to_array(Gb.data, h.size)
    #@compat t = unsafe_wrap(Gb.data, h.size)

warns that

WARNING: pointer_to_array{T}(p::Ptr{T},d::Union{Integer,Tuple{Vararg{Integer
}}},own::Bool=false) is deprecated, use unsafe_wrap(Array,p,d,own) instead.
 in depwarn(::String, ::Symbol) at .\deprecated.jl:64
 in pointer_to_array(::Ptr{Float32}, ::UInt64, ::Bool) at .\deprecated.jl:50 
(repeats 2 times)
 in GMTJL_grid_init(::Ptr{Void}, ::Bool, ::GMT.GMTJL_GRID, ::Array{Any,1}, 
::Array{Any,1}, ::Int64) at C:\j\.julia\v0.5\GMT\src\gmt_main.jl:1014

so I make it

@compat t = unsafe_wrap(Gb.data, h.size)

which errors with

ERROR: MethodError: no method matching unsafe_wrap(::Ptr{Float32}, ::UInt64)
 in GMTJL_grid_init(::Ptr{Void}, ::Bool, ::GMT.GMTJL_GRID, ::Array{Any,1}, 
::Array{Any,1}, ::Int64) at C:\j\.julia\v0.5\GMT\src\gmt_main.jl:1014

and this was just an example that I could understand.

versioninfo()
Julia Version 0.5.0-rc1+1
Commit acfd04c (2016-08-05 15:23 UTC)
Platform Info:
  System: NT (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, haswell)













Reply via email to