摘要 |
In BAAN software, a user defined script is created by copying a standard script to a custom directory and making the required changes to the standard script so as to obtain a custom script. First, the user creates a custom script containing only the user's add-ons and modifications to the standard script, whereby preprocessor directivess are used to call or override code contained in the standard script. Second, the QKEY preprocessor uses the directives to automatically add to the custom script the BAAN software instructions necessary to make the appropriate calls and to dynamically load the standard script. Finally, the user script is compiled, using only the standard script's object code (not the source code) to resolve the calls. The preprocessing is performed without having the standard script's source code available. When the standard source is patched, the custom script will just need to be compiled. Very similar to the concept of inheritance in OO programming, whereby a child class (custom script), derived from a parent class (standard script), overrides or inherits the functionality of the parent. |