|
The terminology in the manuals can get quite confusing. According to the manual's terminology, everything in a module is a procedure. They use the term Procedure rather generically. Procedures come in various flavors: 1.) Main Procedures - The code you've always worked with that we thought of as "programs". H, F, D, I, C, O specs. 2.) Subprocedures - The new code that you put after your main code or in a separate module. Bounded by the newer P-specs. 3.) Functions - Subprocedures that return a value. Homemade BIF's. All three CAN use a prototype, the second two MUST. If you use a prototype for the first type, Main Procedures, it replaces the PLIST. The prototype defines the interfaces between all three of the above (size, type, order of parameters). Both the caller and the callee must have a prototype so that the compiler knows what to expect. There's a lot more details and caveats, but this will get you started. > > -----Original Message----- > > From: Justin Houchin [mailto:jhouchin9@charter.net] > > Sent: Wednesday, April 17, 2002 11:31 AM > > To: RPG Midrange > > Subject: Prototypes > > > > > > This is a multi-part message in MIME format. > > -- > > [ Picked text/plain from multipart/alternative ] > > I also have one more question. I am new to procedures. Can > > someone explain in lemans terms a definition of a prototype, > > procedure, sub procedure and how they relate. I am confused > > on the terminology. I read the section in the back of the > > RPGIV book but I just need to better definition. > > ************************************************************************************************************************************************************************************************************ This message originates from Lincare Holdings Inc. It contains information which maybe confidential or privileged and is intended only for the individual or entity named above. It is prohibited for anyone else to disclose, copy, distribute or use the contents of this message. All personal messages express views solely of the sender, which are not to be attributed to Lincare Holdings Inc., and may not be copied or distributed without this disclaimer. If you received this message in error, please notify us immediately at MailAdmin@lincare.com or (800) 284-2006. ************************************************************************************************************************************************************************************************************
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.