Hi All,
Thanks all for your replies.

OK I can see this will be much easier in v0.4.
I will revisit when v0.4 released.

I'm still curious about colon and end

> Colon lowering changed in 0.4, 


Matt, could you expand on this? How/when is this done in v0.3 vs v0.4?

Does this mean v0.3 code attempting to dispatch on Colon type cannot work? 
(for example the code from subarray.jl quoted below) 

sub(A::AbstractArray, I::Union(RangeIndex, Colon)...) = sub(A, ntuple(length
(I), i-> isa(I[i], Colon) ? (1:size(A,i)) : I[i])...)

I noticed that  OffsetArrays (https://github.com/alsam/OffsetArrays.jl 
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Falsam%2FOffsetArrays.jl&sa=D&sntz=1&usg=AFQjCNGiyReQIa2MTxw3AB-lqxJiQLAVjA>
 
jA 
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Falsam%2FOffsetArrays.jl&sa=D&sntz=1&usg=AFQjCNGiyReQIa2MTxw3AB-lqxJiQLAVjA>)
 
defines const (..) = Colon(), presumably to use .. in place of :

Will it work in v0.4?
How and when is end converted?

Thanks again,
Greg



Reply via email to