Commit 058a5ef8 authored by Steve Bennett's avatar Steve Bennett
Browse files

core: commands that take an index now use integer expressions



This means that instead of just [list index 2+1], we can now do
[list index end-$n*2+1]

This applies to:

    lindex, linsert, lreplace, lset, lrange, lsort, regexp, regsub
    string index,first,last,range

Also add tests for both direct integer expressions and indexes.

Still needs doc update.

Signed-off-by: default avatarSteve Bennett <steveb@workware.net.au>
parent 3627155c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment