You can always just make the arguments give all the parameters:

type EulerAngles{T <: Number, Seq}
    angles::Vector{T}
end

EulerAngles{T}(seq, angles::Vector{T}) = EulerAngles{T,seq}(angles)

----

julia> EulerAngles(321, [pi,pi/2,0])
EulerAngles{Float64,321}([3.141592653589793,1.5707963267948966,0.0])


On Wednesday, August 26, 2015 at 12:26:44 AM UTC-4, [email protected] 
wrote:
>
>
> I know that you can use an outer constructor so that the type of the 
> arguments determines the type parameter used.  But it isn't clear how to do 
> that if the arguments give only a subset of the type parameters, and the 
> rest need to be given explicitly.  I was wondering if that is maybe just 
> not possible.
>
>

Reply via email to