On Thu, Jan 21, 2016 at 11:35 AM,  <[email protected]> wrote:
> I'm using Julia v0.4.2 and I can't compute the length of what m.sig returns:
>
> julia> function f(x)
>        end
>
> julia> for m in methods(f)
>          println(length(m.sig))
>        end
> ERROR: MethodError: `length` has no method matching
> length(::Type{Tuple{Int64,Int64}})
>
> Since I'm trying to use the function length on a Type, and not on an
> instance of said Type. How can I do that?

length(m.sig.parameters)

>
> Many thanks,

Reply via email to