Pre-Declaring Functions And Performance

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]

  1. Sorry, but you didn’t pre-declare that right, try this:

    local printMe – pre-declared function local hello = “Hello World” printMe = function (text) – function implementation and assignment to local ‘printMe’    print (text) end printMe(hello)  

  2. No, pre-declaration does not slow things down.

  1. Sorry, but you didn’t pre-declare that right, try this:

    local printMe – pre-declared function local hello = “Hello World” printMe = function (text) – function implementation and assignment to local ‘printMe’    print (text) end printMe(hello)  

  2. No, pre-declaration does not slow things down.