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



I've been able to use basing pointers with MODS and Arrays quite effectively
in some of my programs, but quickly start running into problems whenever I
try to modularize the code with subprocedures or service program procedures.
Some questions that have come up with regard to how I can use basing
pointers:

1.)  If I allocate 100 bytes to MyBasingPointer and then I do an EVAL
AnotherBasingPointer    = MyBasingPointer, does AnotherBasingPointer also
have 100 bytes allocated to it?  If not, does it have any memory allocated
to it yet?

2.) If AnotherBasingPointer is pointing to the same address as
MyBasingPointer, and I reallocate 1000 bytes to AnotherBasingPointer, have I
also reallocated the memory assigned to MyBasingPointer?

3.)  If I have a basing pointer defined globally in a module, can I
reallocate memory to it in a subprocedure?  Will the new amount of memory
still be there when the subprocedure ends?

4.)  If I define a basing pointer in a subprocedure as static and allocate
memory to it, can I use it and reallocate memory to it in the main procedure
or another subprocedure?

5.)  Is there anyway to work with the allocated memory of a basing pointer
in a given program from a called service program procedure?  Such as
MyBasingPointer = AddMoreMemory(MyBasingPointer:MemoryToAdd)

6.)  Where is the information regarding how much memory has been allocated
to a pointer stored?  Is there an API to get at it?  Maybe if I knew this, I
would be able to determine the answers to the other questions above.

Thanks for your help.




************************************************************************************************************************************************************************************************************
This message originates from Lincare Holdings Inc. It contains information 
which may be confidential or privileged and is intended only for the individual 
or entity named above.
It is prohibited for anyone else to disclose, copy, distribute or use the 
contents of this message.
All personal messages express views solely of the sender, which are not to be 
attributed to Lincare Holdings Inc., and may not be copied or distributed 
without this disclaimer.
If you received this message in error, please notify us immediately at 
MailAdmin@lincare.com or (800) 284-2006.
************************************************************************************************************************************************************************************************************



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.