Re: [fpc-devel] Support needed in understanding some heap.inc related stuff

2014-09-28 Thread Nikolay Nikolov
On 09/28/2014 08:58 PM, Lag Programming wrote: @Nikolay Thank you for your answer. :) Now that you've answered, can you further respond to the following question: why is it needed to zero fill the memory allocated that exceeds the requested value? a) "pointer:=allocmem(initialsize); realloc

Re: [fpc-devel] Support needed in understanding some heap.inc related stuff

2014-09-28 Thread Nikolay Nikolov
On 09/28/2014 05:45 PM, Lag Programming wrote: Hi! I need some help in understanding three things viewed in heap.inc. ... 3) I'm not interested in the importance of the presented function. Why the "existing" code design is preferred over "alternative" code? Existing code: function SysAlloc