|
...the system could provide some checking in this area...
> Nor is there any run-time mechanism to detect the mis-match.
I do not know if RPG takes advantage of this (and suspect it doesn't, but
Barbara would know for sure), but the system can provide some basic
run-time checking. If the caller specified that a parameter was to be
treated as a constant, then the storage for the parameter could (and I
emphasize could) be carved out of a read-only memory allocation by the
compiler/run-time. Attempts to modify the constant by the called program
would then be detected.
A minor point, but the system could provide some checking in this area
(though it is dependent on the compiler).
Bruce Vining
This mailing list archive is Copyright 1997-2026 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.