great - thank you!
On Thursday, 4 June 2015 14:16:42 UTC+1, Yichao Yu wrote: > > On Thu, Jun 4, 2015 at 9:13 AM, Yichao Yu <yyc...@gmail.com <javascript:>> > wrote: > > On Thu, Jun 4, 2015 at 9:10 AM, Christoph Ortner > > <christop...@gmail.com <javascript:>> wrote: > >> ah - extremely embarrassing mistake. Thank you. > >> > >> So was funA the "correct" way to implement this? > > > > IIRC, currently `a[:]` gets lowered to `a[1:endof(a)]` (see > > `expand(:(a[:]))`) so this won't work for get/set index. (I remember > > there's a PR about this lowering, maybe it will change soon?) > > I didn't follow it but this[1] is what I'm thinking about. > > [1] https://github.com/JuliaLang/julia/pull/10331#issuecomment-108682886 > > > > > But IMHO it is the right way if you want to dispatch on `:` in a > > function in general. > > Oh. except that you don't need that dummy `_` if you don't need the > argument. Just `f(::Colon)` should be enough > > > > >> > >> Christoph > >> > >> > >