[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: string.sub and __call metamethod
- From: Shmuel Zeigerman <shmuz@...>
- Date: Fri, 17 Oct 2008 14:22:10 +0200
Luiz Henrique de Figueiredo wrote:
Though var:sub(i,j) is shorter than string.sub(var,i,j), I often feel
that it's still too long for this very basic operation.
But is it that basic? I found myself extracting substrings mostly
IMHO, it is the most basic of all the string functions ("basic" and
"frequently used" isn't the same thing).
Out of curiosity, I inspected Lua files in my local repository to find
out the frequency of use of the string functions (including Lrexlib and