[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: string.gsub (Lua 5.1.1)
- From: roberto@... (Roberto Ierusalimschy)
- Date: Tue, 7 Nov 2006 10:28:13 -0200
> Lua authors will decide if this is mis-description or mis-behavior :)
The truth in this case is that we do not know what is wrong, the code
or the manual. We did not notice that the option of no replacement
(introduced in 5.1) allowed the number of matches to be different from
the number of replacements, until Shmuel's message.
In this particular case, it seems simpler to declare the code right and
correct the manual. We have to clarify the manual anyway. The other
option (to really count "replacements") would need further clarification
of what counts as a "replacement".