×
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.
Was the Called program actually using the Prototype and Procedure Interface? Or was it still using a *ENTRY.
Chris Hiebert
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Dave
Sent: Monday, March 26, 2012 5:26 AM
To: RPG programming on the IBM i / System i
Subject: Re: passing parameters longer than expected
So I'm surprised by how you say this "bit you" and that you wish the
system would warn you? What problem does it cause?
Hi Scott,
I was using code that was already used and did not realize the error
before well into my tests. The same problem could be produced
elsewhere, as other developpers have copied this same error. There was
absolutely no reason to pass the parameters in this way. As we use
CONST on all input parameters, the situation that you describe is not
likely to happen, but if CONST were not used, I am also supprised that
there is no message from the compiler. I do not think that all in our
shop are aware of the result that would produce. It seems to me that
prototyping only offers an aid to compiling and not complete
protection from passing wrong parameters.
As an Amazon Associate we earn from qualifying purchases.