Ticket #46 (closed defect: fixed)

Opened 10 months ago

Last modified 10 months ago

Slicing bug with subtraction

Reported by: JarrettBillingsley Assigned to: JarrettBillingsley
Priority: major Milestone: MiniD 2
Component: Compiler Keywords:
Cc:

Description

>>> global a = [[1, 2, 3, 4]]
>>> a[0][0 .. #a[0]]
 => [1, 2, 3, 4]
>>> a[0][0 .. 5 - #a[0]]
Error: .<loaded by eval>(2:5): Attempting to slice a value of type 'int'
Traceback: .<loaded by eval>(2:5)

>>>

Badtimes!

Change History

01/23/08 21:53:28 changed by JarrettBillingsley

  • status changed from new to closed.
  • resolution set to fixed.

01/23/08 21:53:53 changed by JarrettBillingsley

This actually ended up being a bug with the length expression.