1. MORE OOP STUFF
- Posted by Ferlin Scarborough <ferlin at SANDW.NET> Jun 11, 1998
- 437 views
I have been watching with some interest the discussions on OOP programing. Where I work we use a DBMS package that allows Procedural or OOP style programing. In the OOP style programming, there is a way to AUGMENT a Function or Procedure that is Internal or External. Internal Functions or Procedures are those defined by the language, while External are those defined either in the main program or an include file. Below is an example of how Augmentation works. function Sqrt integer worknum Returns integer local integer myint Forward Send Sqrt <unique code> = Code added by programmer Function_Return myint end_function procedure SysDate <unique code> = Code added by programmer Forward Send SysDate end_procedure <unique code> is code added by the programmer to modify the properties or messages for the procedure or function. The Forward Send command passes on the messages and properties to the calling object. In the function the programmers code does the alteration before the Sqrt is sent. In the procedure then programmers codes alters the SysDate procedure after the SysDate messages and properties are sent to the ogject. This ability to AUGMENT functions and procedures is a very useful ability, due to the fact that you can modify a function or procedure just a little, without having to completly rewrite the code for the function or procedure. Maybe some day EUPHORIA will have a way to AUGMENT functions and procedures. Even if it does not support OOP style coding. Thanks for everything. Later: + + + Rev. Ferlin Scarborough - Centreville Alabama - U.S.A