Sorry, I've did it wrong the first time, the second attempt. Seems like the 
behavior of comprehensions in 0.3.0-rc1 was changed (compared to stable 
0.2.1), and changed in a wrong way. The expected behavior is documented 
here: 

https://github.com/JuliaLang/julia/blob/master/NEWS.md#new-language-features-1

What I see on my installation:

julia> VERSION
v"0.2.1"

julia> map(f->f(), { ()->i for i=1:3 })
3-element Array{Any,1}:
 1
 2
 3

But:

julia> VERSION
v"0.3.0-rc1+61"

julia> map(f->f(), { ()->i for i=1:3 })
3-element Array{Any,1}:
 3
 3
 3

Is it a temporary regression in this specific rc, or an intentional 
language change? Or I am just misunderstanding something? Thanks in advance!

Reply via email to