|
Since parameters are passed using pointers, you are going to pass one pointer or 55 pointers. Makes for an easier decision. Another idea: use an external file to define your data structure for even better maintenance... ----- Original Message ----- From: "Leif Svalgaard" <leif@leif.org> To: <midrange-l@midrange.com> Sent: Friday, September 27, 2002 5:06 PM Subject: Re: Parameters vs. Data Structure? > From: Rick Rayburn <the400man@hotmail.com> > > Got a program calling another program with 55 parameters being passed > > between each > > 2. would I be better served with 1 field being passed and then split into a > > 55 field data structure upon entry/re-entry? > > forget about machine-efficiency, think human-efficiency. > Organize the parameters into an input set and a return set > then structure 1 input parameter with multiple fields, and > 1 return parameter with multiple fields. Organize things so > that they make sense to the maintenance programmer.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.