× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Jerry,

Basically, the length of allocated space is held separately from the pointer
itself - you have to pass this information around. Although maybe Bruce can
tell us how, when you use DEALLOC, it knows how much space was previously
allocated (and therefore, how much to reallocate)...

On Thu, Jun 19, 2008 at 2:09 PM, Jerry Adams <Jerry@xxxxxxxxxxxxxxx> wrote:

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 thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.