I think a function would be better than a special syntax, if we can find a good name for it. Shouldn't be hard to find one since almost every language got one or more functions for that purpose. E.g. "substr" in Perl, "mid" in BASIC. More?
/ Martin Stjernholm, Roxen IS
Previous text:
2003-03-05 22:56: Subject: negative indices in array ranges
Yes, it breaks code. Perhaps [x:y] could be used, where x and y may be negative to count from the end of the array. Three last characters in a: a[-3:]
/ Martin Nilsson (har bott i google)