From: "Vera, Michael" Date: 2002-10-04T03:59:38+09:00 Subject: Re: Ruby vec() command equivalent? あなたがしたすべてのためにあなたに感謝しなさい! 私達はすべてあなたの仕事を認 める。 -----Original Message----- From: matz@ruby-lang.org [mailto:matz@ruby-lang.org] Sent: Thursday, October 03, 2002 1:54 PM To: ruby-talk@ruby-lang.org Subject: Re: Ruby vec() command equivalent? 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.