lua-users home
lua-l archive

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


Jon Smirl wrote:
They have pushed the copas functionality down into the base
language library.  Ruby does this for all things that can block, not
just the network.

base.receive=receive
function receive(skt)
	if (predicateIJustMadeUpToDetectType(skt) == true)
		return copas.receive(skt)
	else
		return base.receive(skt)
	end
end

&c.
--
Lisa
http://www.thecommune.org.uk/~lisa/