On Fri, Oct 7, 2016 at 4:05 PM, Chris Stook <chris.st...@gmail.com> wrote: > Calling objects of type T is only valid if N arguments are provided. What > is the correct syntax for this? > > immutable T{N} > t :: NTuple{N,Any} > end > > (x::T)(args...) = error("wrong number of arguments")
function (x::T{N}){N}(args::Varargs{Any,N}) The parameter always goes after the callee. > > syntax: invalid function name "{N}(x::T{N})"