06-20-2024, 09:16 PM
(06-20-2024, 04:00 PM)SMcNeill Wrote: The problem with adding it into the source is simple: How do you account for all possible variations of array that a user might have?Sigh. 90% of programming seems to be dealing with the edge cases. Your explanation is really clear.
DIM x(0 to 1, 1 to 4)
REDIM x(1 to 3, 4 to 17) <--- Now what the heck does the source look like for this??
DIM x(-1 to 3, 2 to 14, 1 to 27, 11, apple_number, cheestos, and_frogs) <-- and what would the source look like to handle this when its redimmed?
One question I have: how does QB64 store the LBOUNDS and UBOUNDS for an array? Could you point me to the data structure in source?
It seems that QB wants to keep all of the data in the array and just change the indexes that point to the data. Is that true? I'm not sure I understand the reasoning behind that, but I'd love to know.