Changeset 137 for trunk/orca

Show
Ignore:
Timestamp:
05/04/06 20:26:28 (3 years ago)
Author:
krobillard
Message:

Orca - Paths fixed so integer! now relative to current series position.

Location:
trunk/orca
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/ovalue.c

    r108 r137  
    20822082            if( end->type == OT_INTEGER ) 
    20832083            { 
    2084                 result->series.it = orInt(end) - 1; 
     2084                result->series.it += orInt(end) - 1; 
    20852085            } 
    20862086            else if( end->type == OT_GETWORD ) 
     
    20912091                if( val->type != OT_INTEGER ) 
    20922092                    goto invalid; 
    2093                 result->series.it = orInt(val) - 1; 
     2093                result->series.it += orInt(val) - 1; 
    20942094            } 
    20952095            else if( end->type == OT_WORD ) 
  • trunk/orca/tests/working/op_path.r

    r1 r137  
    44print 4 + a/1: 7 
    55probe a 
     6 
     7a: ["a" 0 "b" 0] 
     8it: find a "b" 
     9it/2: it/2 or 3 
     10print a