lua-users home
lua-l archive

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


> An old issue on this list [1] 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 [2], 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?

-- Roberto