>
> It's not an exported interface, and many of us hope it will change 
> drastically 
> in the future, but this works: 
>
> julia> type MyType 
>          Base.Cartesian.@nexprs 5 i->a_i::Int 
>        end 
>
> julia> MyType.names 
> (:a_1,:a_2,:a_3,:a_4,:a_5) 
>
> julia> MyType.types 
> (Int64,Int64,Int64,Int64,Int64) 
>

Hmm.. very specific ninja code :)

Is there an equivalent that allows a for loop iterator to construct the 
type.. Base.Cartesian.@forexprs perhaps? :)

Reply via email to