local function test_A(op, ...) print(op) print(#arg) end local function test_B(op, ...) print(op) print(arg.n) end test_A('фигня', 1,2,3) test_B('фигня', 1,2,3) test_A('фигня', 1,nil,3) test_B('фигня', 1,nil,3) test_A('фигня', 1,2,nil) test_B('фигня', 1,2,nil)