On Wed, Mar 2, 2011 at 01:01, Hans-Peter Diettrich <drdiettri...@aol.com> wrote:
> Paul Ishenin schrieb:
>
>> I noticed today that if I want to allocate 0 bytes I get not a nil but a
>> valid pointer. Why?
>
> This will allow for a following Realloc.
>
> Even in Delphi the behaviour may be subject to the installed memory manager.

Maybe {$mode delphi} should by default install dephi-compatible memory manager?

-- 
Alexander S. Klenin
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to