Peter Popov wrote:
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

You get a pointer to some place where you may store 0 bytes, so nothing :-).

This can be useful because otherwise you may think the allocation failed if you get nil back. (And you've disabled heap exception).

Micha
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to