[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: PiL 1
- From: Petite Abeille <petite.abeille@...>
- Date: Wed, 12 Oct 2011 16:25:05 +0200
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' )