lua-users home
lua-l archive

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


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.