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



>From: MWalter@hanoverwire.com
>Date: Wed, 10 Apr 2002 15:55:11 -0400
> ...
>The only thing that gets me is that if you define an array as based
>and dimension it to 32767 elements, if you only allocate enough
>memory for 10 elements the %elem BIF still returns 32767. I wish
>there were a way to determine how many actual elements were
>allocated. Because of the memory allocation blocking, you
>couldn't get exact but you could get close.

Mark, it's not particularly supported by the compiler to allocate
fewer than the declared number of elements or occurrences.  When
you do your allocations, use another variable to keep track of
the current number of elements, and only use %elem to get the
maximum size of the array.

Barbara Morris



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.