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
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