Differences bewteen Framework and Import ?

BlitzMax Forums/BlitzMax Programming/Differences bewteen Framework and Import ?

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.

not quite.

let's take hello world:
Print "Hello World"

compile it and it will be 800kb+ in size because bmax compiles all modules into it.


But, compile this and it will be about 36k:
Framework brl.blitz
Import brl.standardio

Print "Hello World"


because it will only compile the modules you specify into it.

Framework sets the base module used and you import any other modules you need from there.

if brl.standardio includes other files or imports other modules, they too will be compiled into your app.