Some command use 'end' to mean the last element in array while others use it to mean the index beyond the last element. Eliminate this ambiguity by adding keyword 'last' to mean last element.
Also for efficiency make specific Tcl_Obj that caches end and last values.
Anonymous