Re: [fpc-pascal] initializing pointer values

2011-12-16 Thread noreply
> > > On Fri, 16 Dec 2011, dhkblas...@zeelandnet.nl wrote: > >> >> On implementing a linked list I hit to some unexpected (doesn't mean >> incorrect though) behaviour. >> >>   >> >>   ptest = ^test; >>   test = record >>     p: pointer; >>   end; >> >>   >> >>   new(mytest); >> >>   >> >> When I a

Re: [fpc-pascal] initializing pointer values

2011-12-16 Thread dhkblaszyk
On 16 dec '11, Michael Van Canneyt wrote: > On Fri, 16 Dec 2011, dhkblas...@zeelandnet.nl [1]wrote: > >> On implementing a linked list I hit to some unexpected (doesn't mean incorrect though) behaviour. ptest = ^test; test = record p: pointer; end; new(mytest); When I allocate "mytest" the p

Re: [fpc-pascal] initializing pointer values

2011-12-16 Thread Michael Van Canneyt
On Fri, 16 Dec 2011, dhkblas...@zeelandnet.nl wrote: On implementing a linked list I hit to some unexpected (doesn't mean incorrect though) behaviour.     ptest = ^test;   test = record     p: pointer;   end;     new(mytest);   When I allocate "mytest" the pointer variable "p" is initi