- Jun
- 762
- 16
I think it would be useful to have a command (e.g., INCLUDE) to read the contents of a specified file (using full TCC syntax, of course) into a batch file. This would allow one to have code that is used in more than one batch file or different code for different environments (possibly determined in the main code).
CALL (and to some extent GOSUB) can accomplish this, but if the code is in a loop, it is much faster (5x in an experiment I just did) to have the code resident in the batch file rather than being reloaded each time it is used.
I make this suggestion only if this is easy to implement. For the application I have now, the extra time of the CALL is not significant.
CALL (and to some extent GOSUB) can accomplish this, but if the code is in a loop, it is much faster (5x in an experiment I just did) to have the code resident in the batch file rather than being reloaded each time it is used.
I make this suggestion only if this is easy to implement. For the application I have now, the extra time of the CALL is not significant.