He did post at github https://github.com/JuliaLang/julia/issues/6478

Apparently it took too much time before this mail was accepted to the list.

The problem is that the -1 is parsed as a number when there is a space in 
the expression. Apparently this is good for Matlab familiarity, but people 
regularly gets confused with cases like this.

Ivar

kl. 19:46:02 UTC+2 onsdag 9. april 2014 skrev Jameson følgende:
>
> Please file a bugreport on GitHub 
>
> A[1,1] returns the element at index (1,1) of a 2d matrix
>
> On Wednesday, April 9, 2014, John Drummond <[email protected] <javascript:>> 
> wrote:
>
>> using 0.2.1
>> running the code in a script (it doesn't work in the REPL either)
>>
>> a = {[1,2,3],1,3,[1,2,3,4]}
>> println(a[4][3])
>> println(a[4][end -1])
>>
>> gives
>> 3
>> LoadError("N:/test/test2.jl",7,MethodError(Array{T,N},([1,2,3,4],1,2)))
>>
>> => I.e referencing using *end* doesn't seem to work on lower levels.
>>
>> => Also out of interest why doesn't a[1,1] return the 1st element of the 
>> 1st element, of a?
>>
>> thanks
>>
>>

Reply via email to