From: David Alan Black Date: 2002-07-17T06:49:37+09:00 Subject: Re: TkText no -textvariable workaround? Hi -- On Wed, 17 Jul 2002, Dossy wrote: > On 2002.07.17, Hal E. Fulton wrote: > > > > > Dossy writes: > > > > > > > Speaking academically, the receiver is object a, the method is =(x). > [...] > > But seriously, I think Dossy is mistaken... except in the > > special case of attribute writers and accessors, assignment > > is never considered to be a method call in Ruby. Correct? > > I did say "academically" -- in a pure OO language where everything > is an object, the receiver would be the object a, and the method -- or, > the message being sent, would have been "=(x)" ... > > I wonder how Ruby would have been different if Object#=(x) were defined > as an alias to #replace ... Well, first there would have to be an Object#= :-) Also I think what you're describing is more like (the non-existent but sometimes proposed) #become than #replace, at least the way the various #replace's work in Ruby. I'm not clear on what's at stake here, though, in practical terms. (Even we academics have our practical moments :-) David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav