luasocket/gem/ex7.lua

17 lines
230 B
Lua
Raw Permalink Normal View History

2007-10-11 23:16:28 +02:00
function sink.table(t)
t = t or {}
local f = function(chunk, err)
if chunk then table.insert(t, chunk) end
return 1
end
return f, t
end
local function null()
return 1
end
function sink.null()
return null
end