lua-users home
lua-l archive

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

Is the documentation for the select function [1] [2] correct when an
number is provided for the first parameter as the docs say
"returns all arguments after argument number index"

Lua 5.2.1  Copyright (C) 1994-2012, PUC-Rio
> do
local f = function(...) print(select(1,...)) end
1	2	3

Index one is not after index one and index zero gives an invalid range
error, I suspect it should say something to the effect of
"returns all argument after and inclusive of argument number index"