Changes between Version 2 and Version 3 of VisitorPattern
- Timestamp:
- 07/11/10 08:19:09 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
VisitorPattern
v2 v3 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 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. 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/Cobra.Lang/Visitor.cobra Cobra.Lang/Visitor.cobra] online or in your local installation. 6 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] 6 8 7 9 External pages on visitors: