From: ts Date: 2001-02-23T20:07:08+09:00 Subject: [ruby-talk:11370] Re: Using an object as a variable >>>>> "S" == Stephen White writes: S> If I try and create my own object, which may be usable as a number but S> do some other book-keeping in the background, I have to change this to Well it depend what you want to do, but you can take a look at complex.rb in lib. It make possible to write S> a.value = 45 S> b.value = 54 S> c.value = a.value + b.value S> puts c.value a = Complex(0, 1) b = Complex(1, 0) c = a + b puts c Guy Decoux