[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: string.sub for suffix not usable with varying length (including zero)
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 12 Feb 2013 12:57:15 +0200
2013/2/12 Richter, Jörg <Joerg.Richter@pdv-fs.de>:
> I'm not sure I follow you. My proposal was only for the j=nil case.
> It does not have to behave like j=-1, right?
Quote from the Lua 5.2 manual:
> If j is absent, then it is assumed to be equal to -1 (which is the
> same as the string length).
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.