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