lua - how to call function from above it in code (prior to it being defined)?
- by Greg
what is the syntax (i.e. code example) in Lua so you can call a function prior to it being defined? i.e. how do you kind of create the function, but then add it's implementation further down in code.
So roughly like this:
define function name (doX) here somehow (i.e. subject of this question)
call doX here (further down in the code)
doX implemention here (i.e. all functions down at the bottom of the file)