Bram Kuijvenhoven wrote:
> function TAncestor.ToStringSafe:string;
> begin
> if self=nil then Exit('<nil>');
> Result:=ToString; // now it's safe to call the virtual method
> end;
Are you sure it's really safe to call?
BTW, is there a way to make Assigned(obj) really check for a valid pointer?
Thanks!
--
Al
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives