If I modify test.pla to add a constant definition before the includes:
diff --git a/src/samplesrc/test.pla b/src/samplesrc/test.pla
index 73a29eb..a27c27c 100755
--- a/src/samplesrc/test.pla
+++ b/src/samplesrc/test.pla
@@ -1,6 +1,7 @@
//
// Include all imported modules and their data/functions.
//
+const foo = 42
include "inc/cmdsys.plh"
include "inc/testlib.plh"
//
the PLASMA compiler doesn't complain but it generates a broken module with the "end of module dependencies" zero byte too early (before CMDSYS, in this case):
If I modify test.pla to add a constant definition before the includes:
the PLASMA compiler doesn't complain but it generates a broken module with the "end of module dependencies" zero byte too early (before CMDSYS, in this case):
I think this should either work or the compiler should refuse to compile the file because there's a constant definition in the wrong place.