On 05/04/2010, cobines <cobi...@gmail.com> wrote:
>  >>
>  > I'm not sure that is correct. Once you free Test, Pest still points to
>  > the same non existing object and you can use assigned to check it,
>
>
> Pest would be a dangling pointer and should not be accessed.

Correct, and that was what I was trying to get across. Accessing it
after Test was freed will cause Access Violations, so setting it to
nil is the correct thing to do.


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to