[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: string.sub for suffix not usable with varying length (including zero)
- From: Richter, Jörg <Joerg.Richter@...>
- Date: Tue, 12 Feb 2013 12:26:19 +0000
> 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.