Originally Posted by MunkDev
(3) You don't need to upvalue the global environment just to grab a few functions. This process is quick and painless and only happens once on login anyway.
|
Originally Posted by Lombra
Pretty sure it's a net loss, even.
|
I'd love to see more info on this. I have learned that is it is faster.
For example
then follow suit
Lua Code:
local GetCVar = _G.GetCVar
Is this bad practice? If so I'd love more info on this. Everyone has their ways.
So telling him he doesn't need to do this is right or wrong here or are you teaching him what you have learned.
Lua Code:
-- WoW Lua
local _G = _G
-- Wow API
local GetSpecialization = _G.GetSpecialization
local GetSpellInfo = _G.GetSpellInfo