Opened 19 years ago

Last modified 14 years ago

#40 closed defect (worksforme)

a[1,:] fails in mosh

Reported by: Peter Aronsson Owned by: Peter Aronsson
Priority: critical Milestone:
Component: Version:
Keywords: Cc: Peter Aronsson, Adrian Pop

Description

See comments.

Change History (4)

comment:1 by Peter Aronsson, 19 years ago

setDebugFlags("failtrace")
a:=[1,2;3,4];
a[:,1]
Error evaluating expr.
-ceval_subscript_value failed

  • ceval failed: a[:,1]

comment:2 by Peter Aronsson, 19 years ago

Also not working:
b:=1:5
{1,2,3,4,5}
b[3:-1:1]
Error!
b[1:1:3]
Error!

comment:3 by Adrian Pop, 18 years ago

these seems to work now, but if they are
outside the array, nothing is returned (which I guess is wrong).

comment:4 by Martin Sjölund, 14 years ago

Works in OM 1.6.0
{{{>>> b[1:1:7]

getErrorString()

"Error: Illegal subscript [1:1:7] for dimensions 5 in component <NO COMPONENT>
Error: Variable b[1:1:7] not found in scope <global scope>
"}}}

Note: See TracTickets for help on using tickets.