[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [MANUAL] Lua string splitting by Python semantics
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 30 Aug 2017 12:50:58 -0300
> An old issue on this list  was settled in Lua 5.3.3.
> Up to Lua 5.3.2, string.gmatch and string.gsub had Perl semantics when
> the pattern couild match an empty string; from Lua 5.3.3 onwards, they
> have Python semantics.
> Although mentioned in a list of changes , the manual itself does
> not document the change in behaviour (the old behaviour was not
> considered to be a bug).
Lua uses the same manual for all releases of a version, so the current
manual is for Lua 5.3, not for Lua 5.3.3. The next version (5.4) will
have this new behaviour documented, provided we find a good way to
explain it. Suggestions?