Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
REDIM takes more resources than DIM?
#11
(07-17-2024, 12:49 PM)aurel Wrote:
Quote:because a dynamic array only exists while the program is running
excuse me @Kernel but that is kind of funny
of course that array exist in memory when program running Angel
Yes, it's not so easy to make something understandable this.
The lifespan of static variables or arrays corresponds to that of the program module in which they were defined. They cannot really be deleted. With Erase, all array elements are only initialized with zero.

The memory space of dynamic arrays, on the other hand, is only acquired at runtime when a declaration is made in the program. The Erase command enables the occupied memory space to be released, when the array is no longer needed.
Reply


Messages In This Thread
REDIM takes more resources than DIM? - by bplus - 07-17-2024, 12:21 AM
RE: REDIM takes more resources than DIM? - by Kernelpanic - 07-17-2024, 01:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Preserving multi-dim arrays Pete 5 416 12-19-2025, 03:17 PM
Last Post: Dimster
  packaging resources tool TempodiBasic 6 580 09-22-2025, 11:16 PM
Last Post: TempodiBasic
  DIM AT -- feature request Jack 2 709 08-15-2023, 12:15 AM
Last Post: grymmjack
  REDIM, TYPE, and STRING Woes TerryRitchie 16 3,139 04-13-2023, 05:17 AM
Last Post: DSMan195276
  suggestion: initialize array values within the DIM statement bobalooie 19 3,347 12-22-2022, 06:46 PM
Last Post: Kernelpanic

Forum Jump:


Users browsing this thread: 1 Guest(s)