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?

I notice I have a lot of code that does stuff like:

self.x = self.x + dx

I'm guessing that:

self.x += dx 

could be compiled to something with fewer table look-ups and instructions(?)

Steve