I put together a Nim program that works and then I tore it apart to put pieces in separate files (to collect type, var, proc which concern separate parts of the program) - combining them all with 'include xx' in a main program, plus other additions. Thus I have a small main program and 3 more or less separate pieces that concern 1) accts, 2) files, 3) checks (payments).
Unfortunately, the individual pieces don't compile alone. I have added library imports at the top of each file - assuming that the compiler will ignore them the 2nd and 3rd time they are seen. There might be more I could do here - suggestions are welcome.
Also, I see where the compiler is getting confused: here is an error message
sFilesDB.nim(42, 5) Error: redefinition of 'crec'; previous declaration here: sFilesDB.nim(42, 4)
I realize that an incorrect program can generate any number of misleading error messages, but I wonder if anyone has seen this type of error message before and what it might be a symptom of.
I have checked for duplicate 'crec' definitions in other files, but I had hoped that the compiler would help more with this.
(Having fun - BobG)