Posted by Robert G Laurin on August 11, 2008 at 08:09:19:
I am trying to understand how to write my Comet32 code for use with the cosM32 Compiler.
The documentation mention that the functions need to be declared. That is fine for STRING xxx(A$) or NUMERIC zzz(n) functions, but it does not say how to declare a SubRoutine (to use with CALL).
I am also trying to understand the compiler... I thought that the Compiler did 2 passes, once for the declaratives and one for the executables.
I tried to write a Comet32 program that uses a LOT of constants (quoted literals) and kept getting "Out of Memory" error in the Compiler. So now I am trying to get all of these subroutines into separate functions (or subroutines). However each sub is in a separate usefile and I am not sure how the compiler interpret those.
Can procedures and regular sources be intertwined ? I'd guess not.
Can procedures be stuffed in usefiles? What's the logic for the 'end' and 'enduse' ?
Is there any kind of conditional assembly available in the Comet32 Compiler that would allow processing of declaratives, executables and procedures in three distinct passes ?
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.