[fpc-devel] GetMem(SomePointer, 0) <> nil

Paul Ishenin webpirat at mail.ru
Tue Mar 1 15:24:23 CET 2011


01.03.2011 19:29, Jonas Maebe wrote:
> That sounds very much like badly written code.
For simplicity we had the next code:

GetMem(SomeArray, Count * SizeOf(ArrayCell))

if SomeArray <> nil then DoSomeLogic;

Best regards,
Paul Ishenin



More information about the fpc-devel mailing list