the new version provides a solution LUA jump, both backward and forward.
This can be achieved thanks to “GOTO” and a “LABEL”.
Would like to know why you can not do with Corona SDK? What is LUA version which we are using?
the new version provides a solution LUA jump, both backward and forward.
This can be achieved thanks to “GOTO” and a “LABEL”.
Would like to know why you can not do with Corona SDK? What is LUA version which we are using?
Corona uses Lua 5.1. The goto statement was introduced in Lua 5.2.
But generally speaking, goto statements are poor programming practice. If you’re finding a need to use it, you probably should reconsider how you’ve structured your code.
Thanks Andrew. Honestly, I do not use goto determine poverty or wealth of a program. What determines whether poverty or wealth of a program is the abuse of the goto statement and the implications that this entails. In programming there are too many myths.
That’s fair: used carefully, goto is reasonable in some cases.
I don’t use Goto often
But sometimes it is very helpful to make my code compact to take care of some special situation.
Will Corona SDK use new version of Lua?
Corona uses Lua 5.1. The goto statement was introduced in Lua 5.2.
But generally speaking, goto statements are poor programming practice. If you’re finding a need to use it, you probably should reconsider how you’ve structured your code.
Thanks Andrew. Honestly, I do not use goto determine poverty or wealth of a program. What determines whether poverty or wealth of a program is the abuse of the goto statement and the implications that this entails. In programming there are too many myths.
That’s fair: used carefully, goto is reasonable in some cases.
I don’t use Goto often
But sometimes it is very helpful to make my code compact to take care of some special situation.
Will Corona SDK use new version of Lua?