The current version of Clang.jl will create an immutable like:

immutable Array_2_Cdouble
  d1::Cdouble
  d2::Cdouble
end

which can be indexed numerically as expected.


On Sat, Mar 15, 2014 at 1:54 PM, J Luis <[email protected]> wrote:

> Hi,
>
> I am trying to access to members of a structure 'imported' via ccall and
> where Clang.jl declared the types as being
>
> bitstype int(WORD_SIZE/8)*sizeof(Cdouble)*2 Array_2_Cdouble
> bitstype int(WORD_SIZE/8)*sizeof(Uint8)*80 Array_80_Uint8
>
> But I now am incapable of accessing their contents. Below is an example of
> what I tried (also tried several other variations of this)
>
>
> julia> typeof(hdr.title)
> Array_80_Uint8
>
> julia> typeof(hdr.inc)
> Array_2_Cdouble
>
> julia> hdr.inc[1]
> ERROR: no method getindex(Array_2_Cdouble, Int64)
>
> How can access those guys?
>
> Thanks
>

Reply via email to