|
that is true. If I had v5r3 on my system I would make great use of sub field data structs.
I use them a lot, and I'm at V5R2. I think you can do most of it at V5R1.
the rpg way of: PrintAddressLabel( vendor.RemitAddr ) ; is too verbose.
Seems logical that you'd do it the same way in RPG as well....
PrintAddressLabel(vendor);
If there were additinal parameters, they'd come afterwards:
PrintAddressLabel(vendor: 'PRT01');
after someone from IBM posted the QleActPgmBnd and the QleGetExp api examples last week I was trying to work out how to implement virtual functions and interfaces in RPG and ILE.
It was an interesting exercise. If you over allocate the space for your struct and place a pointer to a vtable in the extra space you can start to implement some virtual class features. But using just RPG it gets messy very quickly!
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.