|
john erps <jacobus.erps@xxxxxxxxx>same
15-01-2018 10:10
Question about dcl-proc
Hi,
I notice that many specify a procedure as follows:
dcl-proc Proc;
dcl-pi *n ind;
parm char(1) value;
end-pi;
code (procedure body) follows
dcl-s x ind;
...
end-proc;
Instead of:
dcl-proc Proc;
dcl-pi *n ind;
parm char(1) value;
end-pi;
code (procedure body) follows
dcl-s x ind;
...
end-proc;
The difference being that in the first example the dcl-pi part has the
indentation level as the procedure body. For me it would seem that the
second example is more logical, because dcl-pi is part of the procedure
declaration, not part of the procedure body, and should have the
indentation level of the procedure declaration.
Any thoughts?
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.