On 6 July 2010 23:59, Andrew Brunner wrote:
>
> It most certainly is not "safe".

I meant is as in it is safe to call MyObj.Free even if MyObj = nil. I
answered based on the explicit question.

But yes, in your example where MyObj was an instance, the code in the
destructor could still trip you up if it caused an exception of some
kind.


-- 
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