lua-users home
lua-l archive

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


On 30/09/2016 22:52, Shmuel Zeigerman wrote:
On 30/09/2016 21:52, Egor Skriptunoff wrote:
"s:sub(k,0)" and "s:sub(0,k)" are always empty strings for any s and k
Zero index always "kills" the substring.


This statement is not correct.

E:\home>lua53 -eprint(('abcd'):sub(0,2))
ab


I should have read the message in the context. Sorry for the noise.

--
Shmuel