Re: [fpc-pascal] Pascal pointer life cycle

2010-05-05 Thread Jonas Maebe
On 05 May 2010, at 11:28, spir ☣ wrote: > So, I have 3 questions: > -1- Why isn't an unallocated pointer nil? Pascal, like C and many other languages, does not automatically initialise *all* variables in a program. It's a basic design decision of the language. > -2- Why is it at all possible t

[fpc-pascal] Pascal pointer life cycle

2010-05-05 Thread spir ☣
Hello, First, I found a very good introduction material to pointers at http://cslibrary.stanford.edu/. The author, "Nick Parlante" (nickname?) really has a great pedagogical talent. Below some code and output tracing a typical pointer's life cycle: === code === procedure PointerLifeCyc