On 25 Feb 2012, at 13:23, leledumbo wrote:

> The code results in AV in the last WriteLn. Is this correct (i.e. intended
> behavior)?

Yes.

> If yes, what is the correct way to have the PR^.avl initialized
> just like TR.avl and x?

Use new(PR) instead of GetMem(SizeOf(TRuang)), or alternatively call 
initialize(PR^) after calling getmem (which new() does for you automatically).


Jonas_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to