tag:blogger.com,1999:blog-1306958590608174053.post6520106472089049121..comments2024-03-21T08:28:12.966+01:00Comments on Musings of a Programming Addict: The Visitor Pattern: A generic and still type-safe approachAnonymoushttp://www.blogger.com/profile/16910067065508493885noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-1306958590608174053.post-81902567333961429992014-02-19T13:20:36.962+01:002014-02-19T13:20:36.962+01:00Dear gunnar morling,
I am sorry for my english.
I ...Dear gunnar morling,<br />I am sorry for my english.<br />I try to understand your solution for generic version of visitor D.P.<br />What I get is that you try to take the reference of visitor and visitable as parameter in your generic version. Is this the reason for ..., T extends Visitable>...? Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-17852275893820108952011-10-06T04:26:51.847+02:002011-10-06T04:26:51.847+02:00Great Article, you saved me a lot of work !Great Article, you saved me a lot of work !koallenhttps://www.blogger.com/profile/09254679388689127037noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-61962803755039416952011-04-13T16:27:55.719+02:002011-04-13T16:27:55.719+02:00Thank you ! Your advices were very useful to walk ...Thank you ! Your advices were very useful to walk an AST tree and implement and code generation for a compiler !Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-13750580652973923092011-04-13T16:26:50.109+02:002011-04-13T16:26:50.109+02:00This comment has been removed by the author.Yohttps://www.blogger.com/profile/06658661773945354019noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-44197719076730173702011-04-13T16:25:03.152+02:002011-04-13T16:25:03.152+02:00This comment has been removed by the author.Yohttps://www.blogger.com/profile/06658661773945354019noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-47109167760799745482010-06-22T19:56:34.823+02:002010-06-22T19:56:34.823+02:00As noted by http://en.wikipedia.org/wiki/Visitor_p...As noted by http://en.wikipedia.org/wiki/Visitor_pattern, you've got the navigation backwards. It is the accept() method of the visitable object that handles navigation for visitorx. That permits visitors to be agnostic to the navigation structure.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-59662181893359955872010-04-16T08:28:03.761+02:002010-04-16T08:28:03.761+02:00Thanks for publishing this nice piece. To make a d...Thanks for publishing this nice piece. To make a design more expressive is always a big plus and this solution is a good example for it.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-92038379047842320852009-04-07T21:44:00.000+02:002009-04-07T21:44:00.000+02:00Thanks for the feedback :-) Glad to hear that you ...Thanks for the feedback :-) Glad to hear that you like the post.Anonymoushttps://www.blogger.com/profile/16910067065508493885noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-24580200647061362532009-04-05T09:28:00.000+02:002009-04-05T09:28:00.000+02:00Very good article!Very good article!Anonymousnoreply@blogger.com