You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.
julia>using NamedTuples
julia> x =@NT(a =0.0, b =0.0, c =0.0)
(a =0.0, b =0.0, c =0.0)
julia>nfields(NamedTuples._NT_a_b_c)
2# however:
julia>nfields(typeof(x))
3
Yes, this is not specific to NamedTuples. Currently it's giving 2 since a UnionAll type has 2 components. I'm not sure what to do in this case, but it should be addressed in base julia.
I think that
nfield(x::DataType)
returns a wrong result on the current master version with Julia 0.6.The registered version on Metadata with Julia 0.5 returns 3, which is the answer I expected
The text was updated successfully, but these errors were encountered: