Organizing code

Blitz3D Forums/Blitz3D Programming/Organizing code

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Ok. So was I just dreaming that I heard that Blitz3d only supported single-parameter functions? Was that true in an earlier iteration and has been changed, or did I just misunderstand something along the way?

Oh, and I do have a question about the difference between functions and Gosubs. Eons ago, when I first learned BASIC, the compilers at that time would just copy the Gosub code at compile-time and insert it at each reference point. Is this how function calls are compiled as well? If not, and if Gosubs still simply copy code in at compile-time, then there might be a file size difference between the use of the two, especially if the functions or Gosubs were called many times from different areas of the program (as opposed to just being used in loops). Is this the case, or do functions and Gosubs compile the same way?


Blitz has always supported multiple parameters in functions, ever since its birth.

Functions and gosubs compile the same way in Blitz3D, to the best of my knowledge, the compiler does not inline either functions or gosubs.