On Monday, August 4, 2014 2:10:36 PM UTC-6, Michael Grant wrote:
>
> Is there an easy resolution to this problem? One solution is for Julia, or 
> me, to define
>
> function cat( d::Integer, X::Union(Number,Base.AbstractArray)... )
> function cat( d::Integer, X::Number... )
>
> If I do it, I'd be reimplementing  the generic method, in the first case 
> at least, unless there is a way for me to link these new declarations 
> directly to the existing implementations. Is there?
>


You could call the generic implementation by using invoke, e.g.,

function cat( d::Integer, X::Number... ) = invoke(cat,(Integer,Any...), d, X
...)

I'm not sure what the performance implications of this are, but it would be 
easy to check.

Reply via email to