Op 2011-01-20 13:16, Konnov Dmitry het geskryf: > > is it good practice in method Visitor.AcceptVisitor to check type of > updated Object > like this: > function TMyClass_Delete.AcceptVisitor: Boolean; > begin > result := (Visited is TMyClass) and (Visited.ObjectState = posDelete); > end;
Yes, that's very important that you check the Visited class type. > I don't know, sometimes atleast TMyClassList visits TMyClass_Delete visitor. > Could it be old tiOpf version issue or still unfixed issue? I'm not sure, can you give a code example of the AcceptVisitor method. Regards, - Graeme - ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ tiOPF-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tiopf-talk
