From: ts Date: 2001-09-27T00:44:42+09:00 Subject: [ruby-talk:21734] Re: manipulating "immutable" objects such as Fixnum from within callbacks & al... >>>>> "B" == Brian F Feldman writes: B> Try the example code... pigeon% cat b.rb #!./ruby class Ptr def initialize(obj) @obj = obj end def []=(obj) @obj = obj end def []() @obj end end module Kernel def _ptr() Ptr.new(self) end end def foo(int) int[] += 1 end x = 1._ptr foo(x) puts x[] pigeon% ./ruby b.rb 2 pigeon% Guy Decoux