lua-users home
lua-l archive

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


>Lua on a machine is this one:
>
>
>I modified the timing code to use x:fact(10) and the time was slightly
>FASTER at 8.44 seconds.

Probably because now you're indexing a local variable ("self")...

Try
    local function fact(n)

in the original code...
--lhf