From: Robert Klemme Date: 2004-02-24T23:14:48+09:00 Subject: Re: bitwise AND, OR, XOR, NOT for strings? "David Garamond" schrieb im Newsbeitrag news:e241b76e.0402240558.5dca01ce@posting.google.com... > (reposted via c.l.r from another email account; post to mailing list > doesn't seem to get through) > > What do people think of adding String#&, String#|, String#^, and > String#~? I find it useful sometimes in Perl. In Ruby currently I have > to convert each byte to integer first, rather slow (actually slow as > mollasses... :-) > > There are BitSet and BitVector modules (and another one which I forgot > for doing bit operations) but ironically none of them currently > provide an easy way to xor two strings together. I once hacked some BitSet together that could be initialized with a String and converted back to a String. If you're interested I could mail it to you. (If I find it back, that is. :-)) robert