Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More Thoughts on Assign and Access (VFP6)
Message
 
To
16/07/1998 16:48:23
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00117203
Message ID:
00118404
Views:
19
You want confusing, try this: THIS.Value=THIS.Value. If you saw this line of code you would think it did nothing, but if THIS.Value has an assign method, this code could result in just about anything.

>OTOH, A&A methods can be very confusing. Imagine a line in a method where it says "This.value=0", which actually triggers value_assign, which in turn recalculates the value, so it never gets to be a zero. You can't trust code anymore :). A good way out would be to have a good crossreference on the object's .value - listing down all the referrences to it, and checking for possible surprises. We've actually got a mighty hammer here, so we should be skillful and not hit our fingers with it.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform