lua-users home
lua-l archive

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

> On 12/04/2013 19:40, Roberto Ierusalimschy wrote:
> >What is new in version 0.12?
> >   + no "unsigned short" limit for pattern sizes
> There is "unsigned short key;" in lptree.h, line 45.
> Is it related to the change described above?

No. The 'key' field does not store offsets or any data related to
pattern sizes. (Indeed, it is not even part of patterns, but of trees.)
This "unsigned short" limits only the number of Lua constants you can
have in your pattern (e.g., you cannot have more than 64K function
captures in a pattern).

> And if it is, do the sources at [1] really correspond to version 0.12?

I hope so.

-- Roberto