[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Newbie questions regarding luasocket, tables
- From: Diego Nehab <diego@...>
- Date: Mon, 7 May 2007 20:57:31 -0400 (EDT)
Take a look at the code in tinyirc.lua. It defines a set
object that can be used with select() and allows for the
operations you want.
Sure, you can do it with extra wrapper layers in Lua. Is there some
reason for not doing it directly in C?
Simplicity, I guess. The alternative would be to support
both. Since it seemed easy to do it in Lua, I didn't
implement it in C. Some time ago, the implementation of
socket.select was mostly in Lua. When I updated it to C, I
feel the need to change the interface.