Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-17-12, 06:23 PM   #1
Jarod24
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Jul 2012
Posts: 66
local pointers of functions

So i've been looking though the blizzard files and i have come across stuff like this:


Code:
--this is from GameTime.lua

local date = date;
local format = format;
local GetCVarBool = GetCVarBool;
local CalendarGetDate = CalendarGetDate;
local max = max;
local tonumber = tonumber;
Does such re-declaring of global functions as "local" like this improve performance?

Its late and i'm sorry if this has been answered a thousand times before.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » local pointers of functions


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off