As result, the COMMON statement had two purposes: sharing variables between modules (as it does in FreeBasic too), and sharing variables between different programs.
In FreeBasic it seems to work only to share variables between modules, but not in chained programs.
If I have program "a"
Code: Select all
Common a as integer
a=100
chain "b"
Code: Select all
common a as integer
print a
In Quick Basic it could have worked, instead, by compiling including the BRUN executable. According to its wiki, it should work on QB64 too
So, perhaps this difference should be mentioned in "Differences from Quick Basic" in the wiki, under the CHAIN and COMMON pages?