[fpc-pascal] methods of an object to create others objects

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Jul 7 00:04:38 CEST 2010


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/



More information about the fpc-pascal mailing list