Include

BlitzPlus Forums/BlitzPlus Beginners Area/Include

robot(Posted 2006) [#1]
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?


WolRon(Posted 2006) [#2]
No. Why would you think that? It's basically a cut/paste function for the source code, nothing else.


Cold Harbour(Posted 2006) [#3]
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.