[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: +=
- From: Pete Gardner <pete@...>
- Date: Tue, 27 Mar 2001 17:06:35 -0800
>
> >Anyone considered adding a += (and -=, /=. *=) operator to lua?
>
> Yes, I think this has been discussed before.
>
I would just as soon use
value1.add(value2)
instead of
value1+=value2
Not much more typing, and it's still pretty clear. Does Lua support that
right now? (Newbie, here.)
However,
value1.add(value2.add(value3).sub(value4.mult(value5)))
Could get confusing, though...