|
Like David, I'm learning a lot from these emails (just a lot more slowly).
A pointer is, as stated, just an address. But it's just the starting
address, right? Which, if I understand Bruce's example and David's concern
correctly, means that PgmA could pass PgmB an address to a parm. But this
pointer/address wouldn't have any clue how long that parm is, right? I.e.,
if PgmA intended for PgmB to use, say, ten bytes it would have to pass that
bit of trivia with the pointer. But, if PgmB decided to use twenty bytes
starting at the passed address, it could. Or is the length of the address
space to be used inherent in the pointer itself?
Jerry C. Adams
IBM System i Programmer/Analyst
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx
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.