lua-users home
lua-l archive

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


does comma operator always process from left to right ? is it in the manual ?

items = 0
function count(...)
    items = items + select(''#', ...)
    return items
end

= count(1,2,3), items
3     3
= count(1,2,3), items
6     6

= items, count(1,2,3)
6     9
= items, count(1,2,3)
9     12