Board Thread:Support Requests - Getting Technical/@comment-23880286-20150719180003/@comment-23880286-20150719210637

I see. In Java you can call every function everywhere within the same class, regardless of whether it's already defined or still has to be defined, so I'm used to that.

So just to be clear, what is the best thing to do here? Make the functions local and move them up? Or make them global? And if I should make them global, should I do that in every module?

mw:Extension:Scribunto/Lua reference manual says "It is generally good style for the module to declare all functions and variables local." So I suppose I should just move them up?

I like it more in this order though. I made it so that it is in the same order they are called to make it easier to read. Moving them up will make the module harder to understand because you'll have to read from the bottom to the top.