Re: [julia-users] Array constructor

2014-04-29 Thread John Myles White
You're just getting dirty memory, which has random values in it. -- John On Apr 29, 2014, at 3:10 PM, Renoir wrote: > Hi all. Just curious for this: > > a1 = Array(Int, 1) > a1[1] is 0 > a2 = Array(Int,1) > and a2[1] is always 0. > ... > > once, and only once, i get > > julia> a = Array

[julia-users] Array constructor

2014-04-29 Thread Renoir
Hi all. Just curious for this: a1 = Array(Int, 1) a1[1] is 0 a2 = Array(Int,1) and a2[1] is always 0. ... once, and only once, i get julia> a = Array(Int,1) 1-element Array{Int64,1}: 4294967296 and a[1] was 4294967296 why that value? I was using Julia 0.2.0 Regards