|
On Dec 19, 2018, at 5:05 PM, John Yeung <gallium.arsenide@xxxxxxxxx> wrote:
On Wed, Dec 19, 2018 at 4:11 PM Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:
When calling procedures, passing by value means that the actual data (i.e. 10 bytes in your case) is pushed onto the stack. When calling by reference (including Const parms) a pointer (16 bytes) is pushed on the stack.
Thanks, Jon. That makes sense, and it hammers home the point.
So, I did a little digging into whether XMLSERVICE supports
pass-by-value at all, and it does. But boy, it's ugly to actually use
it:
https://bitbucket.org/inext/xmlservice-rpg/issues/3/passing-variable-by-value
https://bitbucket.org/inext/xmlservice-rpg/src/master/test.byval/
As if the "standard" call syntax wasn't bad enough! I don't really
have words for the by-value call syntax. Well, not polite ones,
anyway.
John Y.
--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/opensource.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
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.