I've just discovered that multiple nested loops can be written in one line, 
as described here in the manual 
<http://julia.readthedocs.org/en/latest/manual/control-flow/#repeated-evaluation-loops>
.
One thing that slightly threw me off is that this doesn't seem to work with 
the @parallel macro:

@parallel for i=1:2, j=3:4, k=5:6
  println((i, j, k))
end 

Throws "syntax: invalid assignment location" error. It works with

@parallel for i=1:2
  for j=3:4, k=5:6
    println((i, j, k))
  end
end 

Is this expected behaviour of the @parallel macro or am I doing something 
wrong? Is there a way to get everything into one loop?

Reply via email to