a = rand(3,3,3,3)
b = rand(3,3)
# this works:
a[1,1,:,:] = slice(a,1,1,:,:)+b
# this does not work:
a[1,1,:,:] += b

This example does not look so bad, but once you use expressive variable 
names and more dimensions it quickly gets very nasty. Because of it, I am 
doing less vectorisation than I would prefer.

I know there is a lot of discussion on slicing on the Julia issues list, so 
I did not want to post another issue there. 

Is this likely to be resolved in future releases? Are there elegant 
alternatives?

Reply via email to