Does it work if you remove the {} from the inner constructor? I think inner 
constructors don't allow you to create any object type other than that of the 
containing type declaration.

--Tim

On Wednesday, July 23, 2014 09:26:23 PM Sheehan Olver wrote:
> Hi,
> 
>   I'm trying to do the attached code, which fails due to no method
> matching.  What am I doing wrong?
> 
>   The #dostuff was just asserts so I fixed it by commenting out the
> interior constructor, but would like to understand better.
> 
> 
> 
> Cheers,
> 
> Sheehan
> 
> 
> 
> 
> type SpaceOperator{T<:Number,O<:Operator{T},S<:OperatorSpace} <:
> BandedOperator{T}
>     op::O
>     space::S
> 
>     function SpaceOperator{T,O,S}(o::O,s::S)
>          # do stuff
>         new(o,s)
>     end
> end
> 
> SpaceOperator{T<:Number,S<:OperatorSpace}(o::Operator{T},s::S)=SpaceOperator
> {T,typeof(o),S}(o,s)

Reply via email to