lua-users home
lua-l archive

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


> 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...)

-- Roberto