lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 
> >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...