|
-----Message d'origine-----
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] De la part de Scott Klement
Disadvantages are:
a) No bidirectional parameter support without discarding
encapsulation entirely.
b) Total size of all parameters is limited to 64k at v5r4, orI would guess that that's ever occurred to anyone.
16M at 6.1
c) calling routines is significantly more cumbersome andI agree but have no choice.
complex (you may as well go back to the days of CALL/PARM!)
d) No real error checking from the compiler (back to the daysI agree there, I now realise how much time prototyped parameters was saving me.
of CALL/PARM there, too!)
e) No automatic setting of the sizes, so to avoid memoryNot sure if I understand that.
corruption you have to rely on every caller to be coded
correctly. (Something that can't be reliably detected during testing!)
f) No ability to omit data in the middle, other than usingNobody used omitted data even before the new rule.
"special values" which have to be manually set by the caller.
g) Every time you check for an optional parameter, you haveNo optional parameters.
to manually calculate the start position of the optional
subfields. An error in this would also not be detected by
the compiler, or by testing, resulting in memory corruption.
h) You can't ever call your routines from SQL or otherNot needed because no experience of calling from SQL. I will definitely be looking into that one.
languages that don't support structures.
And all for WHAT? So you can check your own length instead
of %PARMS?
What does any of this gain you? Can you provide even a
single thing that this does better than separate parameters do?!?!
Today, we find ourselves having to add the keyword EXTPROC(*CL) to
the prototype. Would it be reasonable to assume that we would never
have to add a keyword to a parameter, at a later release?
EXTPROC(*CL) isn't set on a parameter, it's set on the whole
prototype.
It only matters if you have 1-byte return values, and since you say
all of your output is through an output parameter, I don't see how it
applies to you at all.
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.