From: Andrew Cowan Date: 2002-10-04T04:26:31+09:00 Subject: Re: Ruby vec() command equivalent? Yukihiro Matsumoto wrote: > Hi, > > In message "Ruby vec() command equivalent?" > on 02/10/04, Andrew Cowan writes: > > |In perl I can do this: > | > |vec(expr, offset, bits) > | > |which is needed in non-blocking socket operations for data read and write > |selects. > | > |Is there a Ruby equivalent for this? > |If not, anyone have a workaround for what vec() does? > > You can use > > IO::select([fd1, fd2, fd3], [fd4, fd5], nil, timeout) > > no vec() is needed. But if you really need vec() equivalent, how > about Robert Feldt's BitVector? > > See . > > matz. > > Ahh, I will try your suggestion and look into the BitVector extension as well, thank you! -Andy ______________________________________________________________________ Posted Via Uncensored-News.Com - Still Only $9.95 - http://www.uncensored-news.com <><><><><><><> The Worlds Uncensored News Source <><><><><><><><>