From 8f82ffdd5a548d036be0c9b41009d8a8cf9ae714 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Thu, 18 Oct 2012 18:01:57 -0400 Subject: [PATCH] make a[] == a[1], since in all other cases missing trailing indexes are 1 --- base/array.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/array.jl b/base/array.jl index 3093e52ed6480..baf18e4e10803 100644 --- a/base/array.jl +++ b/base/array.jl @@ -302,7 +302,7 @@ end ## Indexing: ref ## -ref{T}(a::Array{T,0}) = arrayref(a,1) +ref(a::Array) = arrayref(a,1) ref(A::Array, i0::Integer) = arrayref(A,int(i0)) ref(A::Array, i0::Integer, i1::Integer) = arrayref(A,int(i0),int(i1))