From: Joel VanderWerf Date: 2004-07-16T14:13:21+09:00 Subject: Re: Do you want ":=" operator? Phil Tomson wrote: > I suspect that the problem with doing this would be that R0 and R1 are > registers (arrays of bits). He probably already uses R[0] to access bit > 0 of the register > and R[1] to access bit 1 and so on. What he's doing with 'R0=R0&R1' is > logically ANDing the two registers, so that: > > R0="1111" > R1="0100" > > R0=R0&R1 #R0 is now "0100" Then do it this way: R[0]=R[0]&R[1] > > for example. and: > > puts R0[0] #=> 0 R[0][0] #=> 0 If you don't mind using two sets of brackets.