On Mon, 2015-03-16 at 08:40, Christoph Ortner <[email protected]> 
wrote:
> Lex, Stefan: Would it not be possible to  throw an exception when the 
> conversion is considered "unsafe"?

That's the current behavior:

julia> [1,2][1.0]
1

julia> [1,2][1.0001]
ERROR: InexactError()
 in getindex at array.jl:246

julia> [1,2][1.+eps(1.)]
ERROR: InexactError()
 in getindex at array.jl:246

Reply via email to