If it's so important it get called automatically, why can't you run your "finalize" code in the destructor?
On 1/25/2011 3:36 PM, Sam Warns wrote: > Hi, > > that is exactly the point. My RemoveXVisitor SHOULD remove nodes but since > it is not possible to do that in apply and there is no "finalize" method that > gets automatically called after accept has finished, it is only possible to > remove nodes by providing a custom member which the user must call manually. > > That is what I am talking about, it is not possible for a Visitor to do > certain things without having the user explicitly call members of it after > the accept call. > > I did not demand a finalize method and I understand Robert's statement that > flexibility is achieved by relying on the user. Never the less would a > finalize method decrease any flexibility and power of it. > > (Btw: I have never experienced that handing over responsibility to the user > (which is the developer at this point) produced any good results, but this is > only my experience) > > Thanks, > Sam > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=35965#35965 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Peter Amstutz Senior Software Engineer Technology Solutions Experts Natick, MA 02131 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

