Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wishlist???
Message
 
To
06/09/1999 11:51:13
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00260725
Message ID:
00261795
Views:
46
Snip ...
>> ...IMHO we alway should use the release method to release an object.

Walter,

I agree with this point. I call it the Kavorkian pattern, never destroy an object, ask it to destroy itself.

My point on the RELEASE command is simple, If I say RELEASE MyVar I expect MyVar to be released. I don't expect any other variable to be affected by the release command. Having the release of a memvar cause the release on an object when there are other vars referenceing that object just makes no sense to me. It strikes me as a major violation of encapsulation and an introduction of very tight external coupling.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform