lua-users home
lua-l archive

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


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 was mostly in Lua. When I updated it to C, I
feel the need to change the interface.