Hi -- On Tue, 11 Feb 2003, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: value of assignment (Re: Order of the value of an expression changed? (PR#579))" > on 03/02/11, Sean Chittenden <sean / chittenden.org> writes: > > |What was wrong with having the receiver set the return value though? > > Consistency. Ruby provides illusion of assignment for attribute > updating methods (e.g. foo=), and I thought the illusion should be > complete as much as possible. Would it be possible to have method-style return behavior iff the arguments are parenthesized? class A def thing=(x) "dummy return value" end end a = A.new a.thing = 100 # 100 a.thing=(100) # "dummy return value" David -- David Alan Black home: dblack / candle.superlink.net work: blackdav / shu.edu Web: http://pirate.shu.edu/~blackdav