Changes between Version 3 and Version 4 of VisitorPattern
- Timestamp:
- 10/01/12 01:45:56 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
VisitorPattern
v3 v4 3 3 The 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. 4 4 5 Cobra provides a Vis tor 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.5 Cobra provides a Visitor 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.Core/Visitor.cobra Cobra.Core/Visitor.cobra] online or in your local installation. 6 6 7 7 Theres 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]