Interesting spinoff I have just noticed and confirmed.
the compiler always resolves the last version of the label it encounters.
So if you have a duplicate label in a #INCLUDE file it will override the label in the main code file.
So if the main program is this
#INCLUDE "test2.dba"
GOSUB _quicktest
WAIT KEY
END
_quicktest:
PRINT "MAIN CODE"
RETURN
and the include file contains a redefinition thus
_quicktest:
PRINT "INCLUDE FILE"
RETURN
the result is "
INCLUDE FILE"
but if it does not contain a redefinition of _quicktest:
the result is "
MAIN CODE"
I still think it is a bug and a potent cause of many hours of wasted debuging time.
But with the lack of conditional meta commands to control the compile it could prove a useful "undocumented feature".
Green Gandalf
As I have not confirm the bug exists in versions previous to this beta it would be inappropriate for me to place it in the Bug Reports forum at this time. (it also effects goto's so is definately a label not gosub bug)
RatAll