Changes

Jump to: navigation, search

Module:Arguments

265 bytes added, 13:00, 12 January 2014
Fix __pairs and __ipairs functions to handle the nil marker
metatable.doneIpairs = true
end
return pairsfunction ( t, k ) local nk, val = next(metaArgs, k ) if val == nilArg then val = nil end return nk, val end
end
metatable.doneIpairs = true
end
return ipairsfunction (t, i ) local val = metaArgs)[i + 1] if val == nil then return nil elseif val == nilArg then val = nil end return i + 1, val end, nil, 0
end
Anonymous user

Navigation menu