On Friday, December 19, 2014 6:38:29 PM UTC+10, Andreas Noack wrote:
>
> I was surprised to see get a Float64 return value from
>
> let
>     x::Int = 1.0
> end
> 1.0
>
> Could anyone explain the reasoning behind this? Why is it not returning 
> the value of the variable, i.e. after the conversion to Int?
>

To quote Jeff here https://github.com/JuliaLang/julia/issues/7341

"= returns the right-hand side every time. No exceptions."

Cheers
Lex 

Reply via email to