C world has alloca() or _alloca() that allocates memory on the stack instead of the heap.
Does Delphi has such a function?
If you really want to replicate the alloca
functionality in Delphi I suggest you look at the StackAlloc
function in the Grids unit in the VCL. This is a procedure declared in the implementation section of the unit, so you'd have to copy the VCL source to make use of it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With