×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
On Behalf Of Charles Wilt
"Unlike variables, there's no benefit to declaring a constant locally."
Systematically, correct. However when it comes to grouping code logically, I will put a constant into a subprocedure. The benefit is, if at all possible, to keep everything involved in a procedure within that procedure. Ease of portability (say, from a program into a service program). Also ease of use (I can shift my eyes upward to see the value of the constant if I so need - in WDSC anyway).
As an Amazon Associate we earn from qualifying purchases.
This thread ...
Re: Constants in RPG - what would you do?, (continued)
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.