On Thu, Jun 4, 2015 at 9:10 AM, Christoph Ortner
<christophortn...@gmail.com> 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?)

But IMHO it is the right way if you want to dispatch on `:` in a
function in general.

>
> Christoph
>
>

Reply via email to