##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: August 2016 # Modified: 2016-10-03/23:12-0400 ##+ # # &pos, string scanning position # # demonstrate how negative position indexes are set to actual # procedure main() str := &letters str ? { first := &pos &pos := 0 last := &pos &pos := -10 back10 := &pos } write("first: ", first, ", last: ", last, ", -10: ", back10) end