On 01.12.2012 15:00, Manuel Kasser wrote: > On 24.11.2012, 15:48, Uli Schlachter wrote: >> Also, we did some changes to make awesome future-proof. With lua 5.2, >> module() >> was deprecated in lua. Awesome no longer uses this function. > What's about the entire "local var = var" stuff at the beginning of a > module before the module()-call itself? This was necessary, because > module() set the environment to a new one, so all variables were nil. > Does the drop of module() mean this bunch of "variable-transport" isn't > necessary anymore because the modules get the original environment by > default?
Correct. It is no longer necessary. However, the change was already big enough without removing these "local"s and some modules rename variables while "localizing" them. Oh and: "local" variables might be a little faster than global ones, but I don't think this even makes a measurable difference. Uli -- "Why make things difficult, when it is possible to make them cryptic and totally illogical, with just a little bit more effort?" -- A. P. J. -- To unsubscribe, send mail to [email protected].
