From: nobu.nokada@... Date: 2003-02-11T11:44:39+09:00 Subject: Re: value of assignment (Re: Order of the value of an expression changed? (PR#579)) Hi, At Tue, 11 Feb 2003 11:16:55 +0900, dblack@candle.superlink.net wrote: > 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" Interesting, but how will you distinguish it from assignment, absence of whitespace among 'thing', '=' and '('? -- Nobu Nakada