|
On Tuesday, March 31, 2015 6:37 AM Mark Murphy wrote:
Cross posted in RPG and WDSC lists because it applies to both.
Just for reference, IBM i 7.1 TR?, RDi 9.1.1.1.
So just by accident, due to fat fingers, I discovered that the
following RPG code does not generate an error:
handle = ls_init(LSOA_COPY + + LSOA_BLOCK + LSOA_REPEAT);
Note the two + operators separated only by a space. What does that
compile to? It is obvious to me that an operand is missing, but
the compiler happily creates something and goes on it's merry way.
The LPEX source checker thinks it is OK as well!
I wrote a real quick and dirty program that did no more than:
D pComp S 2s 0
D pDiv S 2s 0
D pRef S 6s 0
/free
pComp = 1;
pDiv = 2;
pRef = pComp + + pDiv;
*inLR = *on;
<<SNIP>>
Further testing may be appropriate, but it looks like it fits what
John said: "Most likely the first is the addition operator and the
second is a sign (positive)."
In the interest of full disclosure, we're still running V5R1 (yuck).
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.