El viernes, 28 de febrero de 2014 07:49:09 UTC-6, andrew cooke escribió:
>
> the current behaviour is explained at 
> http://julia.readthedocs.org/en/latest/manual/conversion-and-promotion/
>

But I don't find it evident from that document that Int32+Int32 gives Int64 
on a 64-bit machine!
 

>
>
> 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.
>>
>

Reply via email to