I personally detest INCLUDEs. Why? Well, for 3 very important reasons:
- If a change is made to the INCLUDEd item, all programs using it must be recompiled. One or more main programs could be missed, thus still using the old code.
- When an error occurs inside an INCLUDEd item, only the line number of the INCLUDE is shown, not the line number inside the INCLUDE itself, thus making debugging an INCLUDE more difficult, nigh impossible depending on its size and complexity.
- INCLUDEs do not isolate the code from the calling/using program, thus accidental (or on purpose) reuse of variables can be a danger, causing unexpected behaviour of the main program.
If not, how do people go about debugging an INCLUDE? Short of physically embedding the INCLUDE code in the program (temporarily), I can't think of any other way to do it.
------------------------------
Walter Kiess
SA Police Super
------------------------------


