Ned Konz <ned / bike-nomad.com> wrote in message news:<200208021420.20760 / ned.bike-nomad.com>... > On Friday 02 August 2002 01:55 pm, Reginald Braithwaite-Lee wrote: > > I tried "def operator=", and while the compiler seems to accept the > > syntax, my method is not called at run time :-( > > It works, but you're just not calling it the right way (though this is > probably not what you wanted): > > class A > def operator=(something) > p "here i am #{something}" > end > end > > a = A.new > a.operator = 123 Thanks for your help. As you guessed, that wasn't what I wanted, because I wanted special behaviour that would always work when assignment was made. Oh well.