lua-users home
lua-l archive

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


... and that's their responsibility, not lua's... It's up to them to do proper research subtle language differences, imo..

Mark Hamburg wrote:
On Jul 21, 2008, at 6:03 AM, Manish Jain wrote:

2) we are using very less number of global variables.

Remember that global variable usage can be subtle for those coming from other languages. For example, calling string.format takes two table lookups in addition to the function call. If you cache string.format in a local variable, you eliminate those.

Mark