I have a general question about best organizing code with .inc files:
Using at least eight main .inc files not containing forward referencing is simple with PB. But what is if a new additional .inc file cannot be placed in the correct order in the DECLARE section because whereelse I place it, it always is forward referencing to at least one of the other .inc files while the .inc file contains code used by the following .inc files.
This makes programming very much frustrating sometimes and also leaves back source code in the .inc files by which I repaired 'bugs' caused by forward referencing. So, whenever I reuse a 'repaired' .inc file after some time with new code, I'm getting new bugs caused by the repairs I hardly can find when the .inc files became multi referencing.
Shure, using a DLL instead of .inc source code would be possible, but this would increase the number of DLLs at least twice. On the other hand, I'm always slightly updating the .inc sources while programming, and it would not be a good idea to recompile them each time before compiling my current source code. My current source for example consists of one .bas file and 14 .inc files.
So, what would YOU prefer as a constructive solution in such cases?
Using at least eight main .inc files not containing forward referencing is simple with PB. But what is if a new additional .inc file cannot be placed in the correct order in the DECLARE section because whereelse I place it, it always is forward referencing to at least one of the other .inc files while the .inc file contains code used by the following .inc files.
This makes programming very much frustrating sometimes and also leaves back source code in the .inc files by which I repaired 'bugs' caused by forward referencing. So, whenever I reuse a 'repaired' .inc file after some time with new code, I'm getting new bugs caused by the repairs I hardly can find when the .inc files became multi referencing.
Shure, using a DLL instead of .inc source code would be possible, but this would increase the number of DLLs at least twice. On the other hand, I'm always slightly updating the .inc sources while programming, and it would not be a good idea to recompile them each time before compiling my current source code. My current source for example consists of one .bas file and 14 .inc files.
So, what would YOU prefer as a constructive solution in such cases?
Comment