I have a quick question about pre-declaration.
So if I have a variable that I want to use in multiple functions, I would pre-declare it.
I also like pre-declaring functions as a sort of table of contents where I can see anything that I have allocated memory for.
Question: Does pre-declaring functions slow down performance?
|
EX of what I’m talking about /
[lua]
local printMe
local hello = “Hello World”
function printMe(text)
print (text)
end
printMe(hello)
[/lua]