Hello Denis,

On Fri, 27 Mar 2009 18:53:51 +0300, BCS <[email protected]> wrote:

One option would be to only allow that fn = v syntax where fn returns
void.

Obscure rule and a bad idea in general. This way you can't do "a = b =
c = 42;"-style chaining.


I'd say that chaining example would be a bad idea anyway. strange things would start happening if b or c altered the value or returned a different type. One option, if you insist on chaining working, would be to restrict it to void returns and have the expression evaluate to the RHS.


Reply via email to