Interesting but you are hardly going to have a million gosubs or function calls per frame so the difference in performance in a game will be negligable.
Functions allow you to structure your code making it easier to debug and understand, for these reasons I've not used a gosub ever in Blitz...or any other language I can think of that has functions.
Gosub is one of those commands that should be banished from any programming language, along with its partner in crime goto =)
Functions allow you to structure your code making it easier to debug and understand, for these reasons I've not used a gosub ever in Blitz...or any other language I can think of that has functions.
Gosub is one of those commands that should be banished from any programming language, along with its partner in crime goto =)