On 06 Jul 2010, at 18:42, Andrew Brunner wrote:

> Double Nope.  You cannot access methods of a nil object.

You can, as long as such methods are not virtual (and "free" is not a virtual 
method).

> Nil.Free
> will in-it-and-of-it cause a read access violation.

This is what free does:

           if self<>nil then
             self.destroy;

So it will work fine when called on "nil".


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

Reply via email to