Peter Popov wrote:
As I was porting things from delphi to fp today I noticed the following difference:Should it be forbidden do allocate a buffer of size 0 and reallocate it later for a bigger size ?Delphi (2,5) : GetMem(p, 0) will set p to nil. FPC (2.2.2, 2.3.1) : GetMem(p, 0) will assign something to p
-Michael _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel