lua - how to call function from above it in code (prior to it being defined)?
Posted
by
Greg
on Stack Overflow
See other posts from Stack Overflow
or by Greg
Published on 2012-09-05T23:41:57Z
Indexed on
2012/09/06
3:38 UTC
Read the original article
Hit count: 161
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)
© Stack Overflow or respective owner