[fpc-pascal]pointers under linux

Shifted Soul snsii at yahoo.fr
Mon Mar 18 16:11:59 CET 2002


> new(t2);
> t2^.s:='Hello2'#0;
> t1^.n:=t2;
> writeln('N=',ofs(t1^.n));
> it works !

I know it works (I use it now). But the main is to know why it doesn't
work in this case :

t1^.n := nil
new(t1^.n);

??





More information about the fpc-pascal mailing list