[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: ANN: lua captcha ( 0.2 )
- From: David Manura <dm.lua@...>
- Date: Thu, 24 Nov 2011 22:33:55 -0500
On Thu, Nov 24, 2011 at 8:19 AM, Roberto Ierusalimschy
>> But I checked in the manual, and was surprised to note that [string.len] is not
>> marked as deprecated, not even in Lua 5.2.
>> To Roberto: is this function still maintained for compatibility, or
>> for another reason ?
> Mostly for compatibility (and because we did not notice it could
> be removed ;)
In 5.2, you also have the new `rawlen` function (why isn't it listed
as new in ?), which works on both tables and strings. This ignores
metamethods, but __len is ignored for strings. Penlight has a module
that provides functional forms of all operators , which does invoke