lua-users home
lua-l archive

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


On Oct 12, 2011, at 2:58 PM, Alexander Gladysh wrote:

>> http://www.lua.org/manual/5.1/manual.html#pdf-string.len
> 
> This does not means that one should use it.

Why not? What's wrong with string.len?

>> The length operator is new (in 5.1):
>> 
>> http://www.lua.org/manual/5.1/manual.html#2.5.5
> 
> Why do you mention it?

It applies to string as well:

( 'hello world' ):len() == #( 'hello world' )