Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design Classes - Iterator-Visitor
Message
From
06/10/1998 06:53:59
Rex Mahel
Realm Software, Llc
Ohio, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00143802
Message ID:
00144150
Views:
30
Jim,

I thought the answer would be something like that.

Thanks

Rex

>Rex,
>
>By definition a visitor must know about the thing it visits. Using the object reference is a perfectly valid approach. A visitor visits another object and makes it presence known by doing something to that other object, this requires a degree of external coupling because the visitor cannot affect the object visited unless it knows something about that object.
>
>You cacn code the visitro defensively so it doesn;t crash if it visits an object that doesn't have the properties it is trying to modify by using PEMSTATUS() before it tries to touch any properties.
Previous
Reply
Map
View

Click here to load this message in the networking platform