lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> If you are arguing that str:sub(i) need not mean the same as
> str:sub(i,nil) then I wish you many happy hours of debugging.

Which statement of mine has brought you to this conclusion?

Another quote from the manual:

> ... and string.sub(s, -i) returns a suffix of s with length i.

Is just wrong for i == 0.  Do you have a better proposal to fix it?

I know that the next paragraph is supposed to handle this case.
But a simple interface looks different.