Simon filed an issue: https://github.com/JuliaLang/julia/issues/7679. Thanks for the report!
On Sunday, July 20, 2014 3:58:17 PM UTC-5, Cyril Slobin wrote: > > > This is my first question in this group, maybe it is silly, but: > > In Julia 2.1.0, comprehensions create new variable bindings on each > iteration. > This is explained as a "new behavior" in this example: > > > https://github.com/JuliaLang/julia/blob/master/NEWS.md#new-language-features-1 > > But, in recent 0.3.0-rc1 the interpreter seems to return to the "old > behavior": > > 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 this a temporary regression and will be fixed, or the language > definition was intentionally changed? > The stable release works as documented: > > julia> VERSION > v"0.2.1" > > julia> map(f->f(), { ()->i for i=1:3 }) > 3-element Array{Any,1}: > 1 > 2 > 3 > > Or have I misunderstood something? >
