lua-users home
lua-l archive

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


In the following from section 4.4.4,  "t" in the next calls should be
replaced with "_t".

>>>>
A for statement like
       for index, value in exp do block end

is equivalent to the code:
       do
         local _t = exp
         local index, value = next(t, nil)
         while index do
           block
           index, value = next(t, index)
         end
       end
<<<<