I’m a bit surprised that this code was working in 0.3.11

There’s actually no way that code worked exactly as is under 0.3.11, since 
the Tuple{...} syntax and the AbstractString type, to name a couple of 
things, weren’t introduced until 0.4. So you probably changed something 
else too, when you ported it :)

(In fact, I copied the code you posted into a file and tried to include it 
in Julia 0.3.11, and immediately got ERROR: AbstractString not defined…)

// T

On Wednesday, October 14, 2015 at 4:32:11 PM UTC+2, Josh Langsfeld wrote:

There must have been some other subtle change you made when converting to 
> 0.4. I see the same fill! behavior in 0.3.
>
> julia> VERSION
> v"0.3.11"
>
> julia> X = Array(Vector{Int},5); fill!(X, Int[]);
>
> julia> push!(X[1], 11); @show X;
> X => [[11],[11],[11],[11],[11]]
>
>
> On Tuesday, October 13, 2015 at 6:05:07 PM UTC-4, [email protected] wrote:
>>
>> Thank you to both of you, this makes sense. However I'm a bit surprised 
>> that this code was working in 0.3.11, I'm certain of that, so the fill! 
>> function was using different objects each time? I'd have thought that such 
>> an important thing as evaluation of function arguments would not change 
>> from one version to another. But maybe I missed something?
>>
> ​

Reply via email to