Import Vs Include

BlitzMax Forums/BlitzMax Programming/Import Vs Include

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.

The first one is that imported files doesn't share globals and types with the file they are being imported to, while this is possible on included files. Imported files are also compiled separatelly, that improves compilation time sometimes and that files can be safely shared across several programs.
In general therms I would recommend you to use include untill you're more familiar with BlitzMax.



So what's the most common reason to use import instead of include?