Looks like the parser does not bind the . to the ≤

julia> @which 5.≤a
<=(x,y) at operators.jl:34

julia> @which 5.<=a
.<=(A,B::AbstractArray{T,N}) at broadcast.jl:385

julia> @which 5≤a
<=(x,y) at operators.jl:34

Can you check whether this has been filed and if not file an issue?

On Thu, 2015-01-08 at 21:15, [email protected] wrote:
> ... looks like a bug to me, but I'm not sure.
>
> julia> VERSION
> v"0.4.0-dev+2415"
>
> julia> a=rand(1:12,3,3)
> 3x3 Array{Int64,2}:
>   8   8  11
>  11   5  11
>  10  12   2
>
> julia> a[5.≤a]
> ERROR: `isless` has no method matching isless(::Array{Int64,2}, ::Float64)
> Closest candidates are:
>   isless(::Float64, ::Float64)
>   isless(::FloatingPoint, ::FloatingPoint)
>   isless(::Real, ::FloatingPoint)
>   ...
>
>  in <= at operators.jl:34
>
> julia> a[5.<=a]
> 8-element Array{Int64,1}:
>   8
>  11
>  10
>   8
>   5
>  12
>  11
>  11

Reply via email to