Vote count:
0
when trying to initialize an array of UTF8Strings to "", I came across the following problem:
julia> zeros(UTF8String,1)
1-element Array{ASCIIString,1}:
""
Somehow the zero string is converted to ASCIIString.
julia> typeof(zeros(UTF8String,1))
Array{ASCIIString,1}
Should it not be the case that an invariant of the following should hold:
typeof(zeros(T,n))==Array{T,1}
I ended up using an uninitialized array.
Is this an issue to report or is it a logical result?
asked 2 mins ago
Aucun commentaire:
Enregistrer un commentaire