Clarification on how BMX uses modules

BlitzMax Forums/BlitzMax Beginners Area/Clarification on how BMX uses modules

I seem to recall that Mark stated that this was left to the end user to prevent unexpected behaviour when dealing with variables, among others.

For example, if you allow the end user to specify a specific image to load and end up using something like: LoadImage(myfile$) in your code, there is no real way for the compiler to know up front if it needs to include the PNG loader, the JPG loader, BMP loader, or whatever other image formats you may have.

That said, in most programs (especially games) the programmer is typically in full control of which files get written or loaded by the program, so the above scenario shouldn't be too common I would think...

Even if it would be impossible for Blitz to give a 100% definite answer which modules would be needed, it would be extremely helpful if it were possible for it to generate a 'best guess' that can be finetuned by the programmer... Sure beats making it up from scratch each time.

(Of course this might be something that someone else could put together as an external tool as well? analyze a piece of code, analyze the mods, and try to add two and two together?)