the current behaviour is explained at
http://julia.readthedocs.org/en/latest/manual/conversion-and-promotion/
defining
Base.promote_rule(::Type{Int32}, ::Type{Int32}) = Int32
doesn't help either, and i'm not sure why.
andrew
On Friday, 28 February 2014 10:46:16 UTC-3, Tobias Knopp wrote:
>
> There was quite some discussion on this topic in
> https://groups.google.com/forum/?fromgroups=#!searchin/julia-users/Int32/julia-users/Rte_I6htLRc/VJG5DWVcZbQJ
> I had the feeling that we almost convinced Stefan :-)
>
> The good thing is that Array{Int32} operations do not promote to
> Array{Int64}. But I still vote for promoting Int32 + Int32 to Int32.
>