|
I'm heading down that path also. In short, the prototype ensures there is a consistent way to use the procedure. It allows the compiler to check all the calls to the procedure, and ensure the number and type of parameters are correct. Now, Instead of generating a run-time error on a misformed call, you get a compiler error that you can fix before the program is put into production. Using prototypes is not required (I guess) but strongly recommended. HTH, Loyd > -----Original Message----- > From: Bruce Collins [SMTP:bacollins@twitchellcorp.com] > Sent: Wednesday, 09 February, 2000 11:53 AM > To: MIDRANGE-L@midrange.com > Subject: Prototype in RPG/ILE > > I am trying to learn to use Subprocedures instead of Subroutines in > RPG/ILE. > I am having a problem understanding What the purpose of the Prototype and > its relationship to the procudure. Could someone shed some light on this > please. > > TIA > > Bruce Collins > MIS Manager > Twitchell Corporation > 4031 Ross Clark Circle NW > Dothan, AL 36303 > bacollins@twitchellcorp.com > (334) 792-0002 x 1266 > (334) 673-4121 Fax > +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.