Hi,
In message "[ruby-talk:4857] Re: FEATURE REQUEST: Fixnum bitfields"
on 00/09/12, Wayne Scott <wscott / ichips.intel.com> writes:
|I just realized that the '[]=' is not implimented for Fixnum and Bignum.
|Add that to my feature request. :)
I don't think it's possible, since Numbers are immutable.
There's no way to change a value in a variable by invoking a method.
You may need a hack like Python 2.0's argumented assignment, which
treats immutable object specially. But I think it's ugly.
matz.