Thanks Yichao! :)

El martes, 28 de julio de 2015, 17:19:35 (UTC-3), Yichao Yu escribió:
>
> On Tue, Jul 28, 2015 at 4:13 PM, Diego Javier Zea <[email protected] 
> <javascript:>> 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 
> > 
> > 
>

Reply via email to