Wiki

Changes between Version 2 and Version 3 of VisitorPattern

Show
Ignore:
Timestamp:
07/11/10 08:19:09 (14 years ago)
Author:
hopscc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • VisitorPattern

    v2 v3  
    33The visitor design pattern is a way of separating an algorithm from an object structure upon which it operates. This enables the addition of new operations to existing object structures without modifying those structures. 
    44 
    5 Cobra provides a Vistor base class in its standard library. You can read its doc string and browse its members by looking in [http://cobra-language.com/trac/cobra/browser/cobra/trunk/Source/CobraLang.cobra CobraLang.cobra] online or in your local installation. 
     5Cobra provides a Vistor base class in its standard library. You can read its doc string and browse its members by looking in [http://cobra-language.com/trac/cobra/browser/cobra/trunk/Source/Cobra.Lang/Visitor.cobra Cobra.Lang/Visitor.cobra] online or in your local installation. 
     6 
     7Theres an example of use wrt the cobra compiler in [http://cobra-language.com/trac/cobra/browser/cobra/trunk/Source/DocGenerator.cobra Cobra.Lang/DocGenerator.cobra] 
    68 
    79External pages on visitors: