|
>> With a literal, I seem to remember that the operating system only resolved the pointer to the program the first time, while with a variable it was resolved every time. Using protos or simply CALL/PARM makes no difference. They are both resolved out to the same code. This underlying method used was changed way back in the RPG/400 days - somewhere around V2R2 if memory serves. The way it works now (assuming they didn't break the RPG IV compiler!) is that when a variable is used the content of the variable is compared with the value that was used to resolve the current pointer. If the variable hasn't changed the pointer is used as-is. If it has changed .... So it is slightly slower to use a variable name, since there is an extra compare involved, but unless the value changes that is the only difference. Jon Paris Partner400 www.Partner400.com www.RPGWorld.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.