On Tue, Jul 28, 2015 at 4:13 PM, Diego Javier Zea <[email protected]> wrote:
> Hi! I need help with this constructor on Julia 0.4. What is the correct form
> for write different constructors for D being 1, 2, 3... ? Thanks
>
> julia> immutable AdditiveSmoothing{T}
> λ::T
> end
>
> julia> type ResidueCount{T, D}
> N::Array{T, D}
>
> end
>
> julia> ResidueCount{T,1}(::Type{T}) = ResidueCount{T,1}(Array(T,21))
call{T}(::Type{ResidueCount}, ::Type{T}) = ResidueCount{T, 1}(Array(T, 21))
> ERROR: syntax: malformed type parameter list
>
>