FWIW, this one only applies to DataType

julia> fieldtype(data, :a) 
ERROR: TypeError: fieldtype: expected DataType, got dat


On Wednesday, May 6, 2015 at 4:35:59 PM UTC+2, Simon Danisch wrote:
>
> Checkout:
> xdump(data)
> fieldnames(data)
> fieldnames(dat)
> fieldtype(data, :a)
>
> Best,
> Simon
>
> Am Mittwoch, 6. Mai 2015 16:27:24 UTC+2 schrieb Alexandros Fakos:
>>
>> Hi,
>>
>> Suppose I have
>>
>> type dat
>>   a :: Array{Float64,1}
>>   b :: Float64
>> end
>>
>> and variable *data *of type *dat*
>>
>> is there a function that prints out the fields of *data* with some 
>> information about each field?  
>>
>>
>> Thanks a lot,
>> Alex
>>
>

Reply via email to