09-11-2023, 10:58 AM
(09-10-2023, 02:47 PM)TerryRitchie Wrote: Perhaps a fixed (static) sized _MEM structure could be used and a stack pointer indicating the current memory location much the same as was done in Assembler. Depending on the pointer use you could create a LIFO or FIFO stack. I think using _REDIM _PRESERVE would be rather slow for something like a stack that is constantly updating.
I agree with this, instead of begging for something that could complicate the QB64 source code that deals with UDT's. Besides, one could write something that is compatible with the "official" QB64 as well.
Yes, I don't like using `REDIM _PRESERVE` (only "preserve" keyword carries the underscore in this BASIC dialect, Terry) for only one element of any type or size.