lua-users home
lua-l archive

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


They were both globals.
On Aug 7, 2014, at 8:22 AM, Thomas Jericke <tjericke@indel.ch> wrote:

> On 08/07/2014 03:10 PM, Mason Mackaman wrote:
>> for the following, ‘str’ is some string value.
>> 
>> So I just tested the speed of str:len() and string.len(str)
> Are str and string both locals, or both globals or mixed?
> 
> To make a fair comparison I would use either global for both or local for borth.
> --
> Thomas
>