[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.3.3 (rc1) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 5 May 2016 11:21:08 -0300
> 2. Why has the capture limit been changed from an int to an unsigned
> char? Does this have something to do with limits on number of return
> values or number of function arguments (i.e. string.gsub called with a
> replacement function)?
No. That was to avoid growing the MatchState structure with the addition
of some variables to control the complexity of the match. With that
variables removed, the change became pointless. But it does not hurt.
(The real limit is 32, quite far from 255...)