[fpc-pascal] Pointers in Pascal!!

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Apr 29 14:56:26 CEST 2008


On 29 Apr 2008, at 14:48, Zaka E-Lab wrote:

> I don't create anything, the memory is allocated by the create
> procedure. How can the procedure know if the argument is a pointer
> already allocated or not?

It cannot know that without help. You have to do such bookkeeping  
yourself (e.g., as mentioned before, by assigning nil to all pointers  
when declaring them). That is one of the basic properties of a  
language with manual memory management.


Jonas



More information about the fpc-pascal mailing list