Include/Import question

BlitzMax Forums/BlitzMax Programming/Include/Import question

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.

Hi all,

Given I have a project consisting of two files like those below.

- Is it sufficient to define "strict" in the main file so it will be enforced in functions.bmx too?
- are the const's declared in main also visible in functions? I notice there's no Global Const statement.
- Under what circumstances might include be better than import? I can't see any advantage, only longer compile time.


The files (not actual code):

main.bmx:

Strict
Include "functions.bmx"
Const DEBUG = 1
Anyfunction()
End


functions.bmx:

Function Anyfunction()
...
End Function