Include
BlitzPlus Forums/BlitzPlus Beginners Area/Include
| ||
I was looking at some of the blitz docs, and I found the "Include" comand. i know what the funciton does, but does it make the program run faster? |
| ||
No. Why would you think that? It's basically a cut/paste function for the source code, nothing else. |
| ||
It allows you split your source code over several files. Instead of having one giant listing you could, say, put all the functions that draw mutant aliens in one file called "draw_aliens.bb". Then in your main listing you go "Include draw_aliens.bb". It does not make things faster. It's used to make your code clearer more managable and moduler. Includes are good. |