[fpc-devel] an observation about GetMem
Peter Popov
ppopov at tamu.edu
Thu Sep 4 21:42:00 CEST 2008
Well, if it points to something, then there is space, isn't it? Unless it
is clearly mentioned in the documentation that GetMem(p,0) results in p
being undefined and it is put as a requirement for any custom
implementation of a heap manager.
Either way would work.
Peter
On Thu, 04 Sep 2008 14:27:35 -0500, Micha Nelissen <micha at neli.hopto.org>
wrote:
> Peter Popov wrote:
>> size is 0 (realloc does). On the other hand, assigning something is a
>> bad idea too, as it suggests at least Size(pointer) amount of storage,
>> unless that memory spot is somehow marked as "empty", etc.
>
> How does it suggest a storage space with size > 0 ?
>
> Micha
> _______________________________________________
More information about the fpc-devel
mailing list