From: davegaramond@... (David Garamond) Date: 2004-02-24T22:59:49+09:00 Subject: bitwise AND, OR, XOR, NOT for strings? (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. -- dave