Re: [Fresco-devel] Bogus traversals (and patch)
Stefan Seefeld <[email protected]>
| Newsgroups | gmane.comp.video.fresco.devel |
|---|---|
| Message-ID | <[email protected]> |
Nick Lewycky wrote:
> I ask the graphic to traverse itself, then its children by calling
> A->traverse(t);
>
> My suggested implementation of A->traverse(t) is {t->visit(_this);
> MonoGraphic::traverse(t); }
yeah, that would work equally well (beside the fact that you have to care
for the cleanup in the Traversal). Why do you think this is better
than calling MonoGraphic::traverse inside 'draw' and 'pick' ?
Do you feel it is more clean to keep the actual visitor stuff separate
from the traversal (which reminds a bit of the cursor pattern...) ?
Stefan