|
>From: "Jim Langston" <jlangston@celsinc.com> >Date: Tue, 28 Aug 2001 14:18:00 -0700 > ... >So, I had modules: >DATETIME (Date/Time routines) >SYSTEM (System API call interfaces) >CARTAGE (Specific to the Cartage application) > >Service program CARTAGE contained all 3 modules. >Service program GENERAL contained DATETIME and CARTAGE. > >So if I was writing a Cartage program I would use the CARTAGE >service program. If I was writing any other program, I would >use the GENERAL service program. > >I am not sure if this is the proper way to do it, but I felt it >was the best at the time. Jim, I don't think that's the best way to do it. That way, you have the same code in two places which is the very problem that service programs are supposed to alleviate. A better way to do it would be to have the CARTAGE service program only have the cartage-specific modules. You could have two binding directories, if you wanted to ensure that only Cartage programs used the CARTAGE service program. In your CARTAGE binding directory, put both service programs. In your GENERAL binding directory, just put the GENERAL service program. (It's ok to have the same service program in more than one binding directory, because a binding directory is just a list that's only used at compile time.) Barbara Morris
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.