Hi, My understanding was that ... in a method argument forms a tuple, but I don't know how to dispatch on that. Self-contained example:
import Base.getindex type Foo{T <: Tuple} end getindex{T}(f::Foo{T}, index::T...) = 42 Foo{Tuple{Int}}()[9] ## won't match ## workaround with wrapper: _mygetindex{T}(f::Foo{T}, index::T) = 42 mygetindex{T}(f::Foo{T}, index...) = _mygetindex(f, index) mygetindex(Foo{Tuple{Int}}(), 9) Is it possible to make it work without a wrapper in current Julia? Best, Tamas