|
As far as seeing what the code path should be, how it this worse than using
MONITOR to avoid e.g. array index errors:
// Check for errors before processing
if a = 0 or
array.ptr(a) = null or
array.len(a) < 0;
throwError;
endif;
// Load newvar
varptr = array.ptr(a);
newvar = %subst( var : 1 : array.len(a) );
I know - it's a nice simple example. Can you show me an example of code that
uses MONITOR that couldn't equally clearly be written using specific error
checks?
Maybe it's the comments that make it clear? <grin>
// Load newvar
Monitor;
varptr = array.ptr(a);
newvar = %subst( var : 1 : array.len(a) );
On-error;
throwError;
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.