joao lobato wrote:
I suppose it would be better all around if string.sub only accepted non-null integers as indices
If s:sub(5,4) is valid then s:sub(1,0) should be valid too. -- Shmuel